W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
f = open("demofile.txt", "a") f.write("Now the file has more content!") f.close() #open and read the file after the appending: f = open("demofile.txt", "r") print(f.read())