W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
f = open("demofile.txt", "w") f.write("Woops! I have deleted the content!") f.close() # 追加内容后打开并读取文件: f = open("demofile.txt", "r") print(f.read())