self-confidence,the source of all the power

导航

2012年10月16日 #

python getopt

摘要: 1.使用getopt模块处理Unix模式的命令行选项:getopt模块用于抽出命令行选项和参数,也就是sys.argv。命令行选项使得程序的参数更加灵活。支持短选项模式和长选项模式。 e.g. python scriptname.py -f 'hello' --directory-prefix=/h... 阅读全文

posted @ 2012-10-16 10:45 漩涡鸣人 阅读(7586) 评论(0) 推荐(1)