So speichern Sie Daten in Textdatei Python

with open('readme.txt', 'w') as f:
    f.write('readme')
Code language: JavaScript (javascript)
Expensive Elephant