So schreiben Sie in eine Datei in Python, ohne alle Inhalte zu löschen

file = open("FILE_NAME.txt", "w+") # opens the file in both read and write mode
Fair Finch