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) 编辑 收藏 举报