import subprocess


res = subprocess.Popen('dir',shell=True,stdout=subprocess.PIPE,stdin=subprocess.PIPE,stderr=subprocess.PIPE)
print(res.stdout.read().decode('gbk'))
posted on 2018-05-25 11:16  Python哥  阅读(123)  评论(0编辑  收藏  举报