执行脚本:
python D:\PyCharmProjects\test\test.py 1800 D:\PyCharmProjects\data\result 1589872654000
脚本内容:
import sys
print("hello world")
print("执行脚本:" + sys.argv[0])
print("参数1:" + sys.argv[1])
print("参数2:" + sys.argv[2])
print("参数3:" + sys.argv[3])
输出结果:
hello world
执行脚本:D:/PyCharmProjects/test/test.py
参数1:1800
参数2:D:\PyCharmProjects\data\result
参数3:1589872654000