python Popen 获取输出,等待运行完成示例 我就废话不多说了,直接上代码吧!importsubprocessdefexcuteCommand(com):ex=subprocess.Popen(com,stdout=sub 等待运行