Öffnen Sie die Datei rw python
with open(filename, "r+") as f:
data = f.read()
f.seek(0)
f.write(output)
f.truncate()
BeRMOoDA
with open(filename, "r+") as f:
data = f.read()
f.seek(0)
f.write(output)
f.truncate()