在cmd 中输入:echo process1 = subprocess.Popen(command1,stdout=subprocess.PIPE,shell=True)

 

然后找到:subprocess.py文件

在class Popen(object):中的__init__里面把shell=False修改为shell=True

 

posted on 2019-04-09 17:06  pb2016  阅读(1146)  评论(0编辑  收藏  举报