调用subprocess调用shell命令时屏蔽标准输出

import os, subprocess
p = subprocess.Popen(args, stdout = subprocess.PIPE,stderr = subprocess.STDOUT)
posted @ 2018-07-25 22:17  random_lee  阅读(1166)  评论(0编辑  收藏  举报