Redirect stdout and stderr to same file using Python

后端 未结 2 1477
梦谈多话
梦谈多话 2021-01-20 15:45

I would like to redirect the standard error and standard output of a Python script to the same output file. From the terminal I could use

$ python myfile.py         


        
2条回答
提交回复
热议问题