Python-file output directly to a log-file in Python?

前端 未结 0 1646
忘掉有多难
忘掉有多难 2020-12-06 18:33

I have a Python file test.py and its output is 5 lines. I want to redirect the output (these 5 lines) into a log-file. Is it a way to run the test.py

相关标签:
回答
  • 消灭零回复
提交回复
热议问题