getopt – Command line option parsing - Python Module of the Week

getopt – Command line option parsing - Python Module of the Week

瀏覽:1422
日期:2024-05-31
$ python getopt_example.py --ver 2.0 ARGV : ['--ver', '2.0'] Traceback (most recent call last): File "getopt_example.py", line 44, in 'version=', File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/getopt.py", line 88, in getopt opts .....看更多