📜  python sys.argv 异常 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:47.390000             🧑  作者: Mango

代码示例1
try:
    filename = sys.argv[1]
except IndexError:
    print "You did not specify a file"
    sys.exit(1)