📜  python将子进程stdout stderr写入文件 - Python代码示例
📅  最后修改于: 2022-03-11 14:45:44.347000             🧑  作者: Mango
代码示例1
with open("stdout.txt","wb") as out, open("stderr.txt","wb") as err:
subprocess.Popen("ls",stdout=out,stderr=err)