def run_command(command):
proc = subprocess.Popen(
shlex.split(command),
stderr=subprocess.STDOUT,
stdout=subprocess.PIPE
)
output = proc.communicate()[0]
return output
Python调用命令行时,保存warning提示
最新推荐文章于 2023-03-13 15:35:40 发布