1. 执行命令行
import os
command = '指令
os.system(command)
2. 获取命令行参数
参考https://www.runoob.com/python3/python3-command-line-arguments.html
import sys
for i in sys.argv:
print (i)
import os
command = '指令
os.system(command)
参考https://www.runoob.com/python3/python3-command-line-arguments.html
import sys
for i in sys.argv:
print (i)