Subprocess Problem
In dem man sie schließt, mit .close() oder mit "with"
Code: Alles auswählen
with open('my_file.txt', 'w') as f:
f.write('asd')
# hier gehts weiter
the more they change the more they stay the same
- cofi
- Python-Forum Veteran
- Beiträge: 4432
- Registriert: Sonntag 30. März 2008, 04:16
- Wohnort: RGFybXN0YWR0
http://docs.python.org/tutorial/inputou ... ting-fileslunar hat geschrieben:@Temoc: Nun, Du kannst auch einfach die Dokumentation lesen ...
Michael Markert ❖ PEP 8 Übersetzung ❖ Tutorial Übersetzung (3.x) ⇒ Online-Version (Python 3.3) ❖ Deutscher Python-Insider ❖ Projekte