Schreiben Sie zur Datei in p

f = open("demofile2.txt", "a")
f.write("Now the file has more content!")
f.close()