subprocess 运行cmd命令

import subprocess

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

 

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