获取您自己的 Python 服务器
×
更改方向
更改主题,深色/浅色
前往 Spaces
f = open("demofile3.txt", "a") f.writelines(["See you soon!", "Over and out."]) f.close() #open and read the file after the appending: f = open("demofile3.txt", "r") print(f.read())
你好!欢迎来到 demofile2.txt
此文件仅用于测试目的。
祝你好运!回头见!完毕。