当前位置: redice's Blog > TAG标签 > Python Optio

日期:11-03-13 |  分类:Python |  标签:Python Optio |  0 Comments

Python的命令行参数解析利器:OptionParser from optparse import OptionParserusage = \%prog [args]Example: %prog -k school -n 20 -s parser = OptionParser(usage=usage)parser.add_option(-k, --keywords, dest=keywords, help=keywords to search)par

阅读剩余部分...

    共1页/1条

redice's Blog  is powered by DedeCms |  Theme by Monkeii.Lee |  网站地图 |  本服务器由西安鲲之鹏网络信息技术有限公司友情提供

返回顶部