>>> import sys
>>> print(sys.argv)
>>> def pt():
>>> print("这是pt")
>>> def dt():
>>> print("这是dt")
>>> if sys.argv[1]==‘pt‘:
>>> pt()
>>> elif sys.argv[1]==‘dt‘:
>>> dt()
原文地址:http://blog.51cto.com/13562606/2060595
时间: 2024-11-05 19:00:38