摘要: 介绍python获取命令行参数的方法:getopt模和argparse模块。 python版本:2.7 一、getopt模块 主要用到了模块中的函数: options, args = getopt.getopt(args, shortopts, longopts=[]) 参数args:一般是sys. 阅读全文
posted @ 2017-03-02 14:36 蓝闪 阅读(27013) 评论(0) 推荐(1) 编辑