获取您的 Python 服务器 Result Size: 625 x 664
x
 
f = open("demofile2.txt", "a")
f.write("\nSee you soon!")
f.close()
#open and read the file after the appending:
f = open("demofile2.txt", "r")
print(f.read())
您好!欢迎来到 demofile2.txt
此文件用于测试目的。
祝你好运!
再见!