使用python调用其他脚本

cmd = '<command line string>'
print(cmd)
p = subprocess.Popen(args=cmd, shell=True, stdout=subprocess.PIPE)
p.communicate()  

p.communicate()等待Popen任务执行完成。

posted on 2019-01-16 21:00  Zhangwill  阅读(172)  评论(0编辑  收藏  举报

导航