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
PREVIOUS
NEXT
Tagged:
#python
#write
#line
#file
ADD COMMENT
Topic
COMMENT
Name
5+3 =
Submit