[partial function]

  functools.partial(func[,*args][, **keywords])

  Return a new partial object which when called will behave like func called with the positional arguments args and keyword arguments keywords. If more arguments are supplied to the call, they are appended to args. If additional keyword arguments are supplied, they extend and override keywords. Roughly equivalent to:

  

  The partial() is used for partial function application which “freezes” some portion of a function’s arguments and/or keywords resulting in a new object with a simplified signature. For example, partial() can be used to create a callable that behaves like the int() function where the base argument defaults to two:

  

参考: http://docs.python.org/2.7/library/functools.html

最新文章

  1. SQL Server需要监控哪些计数器
  2. TCP通信丢包原因总结
  3. 删除win8的网络连接记录
  4. android 下载文件,file的读写应用
  5. SpringMVC学习笔记(一)
  6. Android使用SAX解析XML(1)
  7. 用 get 同步/异步 方式获取网络数据并输出
  8. block捕获自动变量和对象
  9. Python和Ruby开发中源文件中文注释乱码的解决方法(Eclipse和Aptana Studio3均适用)
  10. asp.net web.config 经典模式和集成模式相关配置
  11. 完整的开发一个ContentProvider步骤
  12. Python mining
  13. 更换arm-linux-gcc 4.3.2编译器
  14. 第一周-JAVA基本概念
  15. 08机器学习实战之BP神经网络
  16. Howto Building GNU Toolchains
  17. 【转】28个Unix/Linux的命令行神器
  18. 命令行登录远程Mysql
  19. NSObject协议中方法:description 和 debugDescription
  20. Python pyQt4/PyQt5 学习笔记3(绝对对位,盒布局,网格布局)

热门文章

  1. Total Defense Anti-Virus – 免费6个月
  2. 20181009-5 选题 Scrum立会报告+燃尽图 04
  3. CAM350对比两个gerber之间的差异
  4. ReactNative 问题集合
  5. 第一个openGL程序
  6. 解决HTML加载时,外部js文件引用较多,影响页面打开速度问题
  7. sqlite常用语法详细介绍
  8. linux 下的php_gd2.dll
  9. BZOJ3297: [USACO2011 Open]forgot(背包)
  10. 用yum安装lamp和lnmp环境