subprocess 运行cmd命令

import subprocess

subprocess.run(cmd代码,shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, )

 

posted @ 2022-03-28 11:25  Hany47315  阅读(310)  评论(0编辑  收藏  举报