当前位置: 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条