W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
demo_python_ref_file_flush.py:
f = open("myfile.txt", "a") f.write("Now the file has one more line!") f.flush() f.write("...and another one!")
[email protected]
:/home/python#python demo_python_ref_file_flush.py