DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python write a line to a file
f=open('output.txt', 'w') print("Hello world", file=f) f.close
Source by www.kite.com #
PREVIOUS
NEXT
Tagged:
#python
#write
#line
#file
ADD COMMENT
Topic
COMMENT
Name
3+6 =
Submit