Tips, Tricks and Tools
... and Thoughts
(Move to ...)
Home
All Posts
Firefox Extensions
JavaScript Compiler and Encoder
Bulk Player for YouTube
Misc Tools
Support
▼
Friday, August 30, 2019
Python: redirect output to a file
To redirect the standard output to a file by the source code, add this in the beginning of the Python script:
import sys
sys.stdout = open('/path/to/outputfile', 'a')
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment