标签:process err read imp tde shell pip pre sub
import subprocess
res = subprocess.Popen(‘dir‘,shell=True,stdout=subprocess.PIPE,stdin=subprocess.PIPE,stderr=subprocess.PIPE)
print(res.stdout.read().decode(‘gbk‘))
标签:process err read imp tde shell pip pre sub
原文地址:https://www.cnblogs.com/ajaxa/p/9087579.html