2018年9月3日

python之optparse

摘要: Python有两个内建的模块用来处理命令行参数 一个是getopt只能简单处理命令行参数 一个是optparse,功能更强大,而且易于使用,可以方便地生成标准的,符合Unix/Posix规范的命令行说明,会自动负责-h帮助选项 Optparse支持一般性GUN的选项方法,包括 无参选项:-v 有参选 阅读全文

posted @ 2018-09-03 17:25 Slege 阅读(249) 评论(0) 推荐(0) 编辑

python之callable

摘要: callback是python的内置函数 英文说明: callable(object) Return True If the object argument appears callable,False if Not. If this return true,it is still posssibl 阅读全文

posted @ 2018-09-03 14:11 Slege 阅读(467) 评论(0) 推荐(0) 编辑

导航