rank vote view answer url 69 1236 1278128 7 url 如何增加文件的内容? 如何做到 append 文件而不是覆盖? with open("test.txt", "a") as myfile: myfile.write("appended text")