redirect prints to log file

前端 未结 8 1396
萌比男神i
萌比男神i 2020-12-02 09:05

Okay. I have completed my first python program.It has around 1000 lines of code. During development I placed plenty of print statements before running a command

8条回答
  •  有刺的猬
    2020-12-02 09:45

    Putting your own file-like in sys.stdout will let you capture the text output via print.

提交回复
热议问题