运维网's Archiver
论坛
›
Shell/Powershell
› python 调用shell 命令 方式
23decxf
发表于 2018-8-25 11:31:43
python 调用shell 命令 方式
现在把知道的调用方式写下来
os方式:
os.system(' command ')
print os.popen(' command ').read()
commands:
print commands.output(' command ')
subprocess:
subprocess.call([' command ',''])
subprocess.Popen(' command ')
页:
[1]
查看完整版本:
python 调用shell 命令 方式