DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python export console output to file
sys.stdout = open("test.txt", "w") print("Hello World") sys.stdout.close() # TEST.TXT: # Hello World
Source by www.kite.com #
PREVIOUS
NEXT
Tagged:
#python
#export
#console
#output
#file
ADD COMMENT
Topic
COMMENT
Name
5+7 =
Submit