运维网's Archiver
论坛
›
Python
› python subprocess tips
wangwengwu
发表于 2017-4-22 07:14:13
python subprocess tips
http://stackoverflow.com/questions/14246292/python-subprocess-call-blocking
subprocess.call
block, and 立刻运行命令
p = subprocess.Popen
不运行
当p.wait 时,开始运行
output = subprocess.check_output
立刻运行,如果失败,raise exception
页:
[1]
查看完整版本:
python subprocess tips