SORU
16 Ocak 2011, Pazar


Nasıl Python dosyası eklemek musunuz?

Nasıl üzerine yerine dosyaya Ekle? Dosyayı ekler özel bir işlevi var mı?

CEVAP
16 Ocak 2011, Pazar


with open("test.txt", "a") as myfile:
    myfile.write("appended text")

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • LaKe Lightroom Tutorials

    LaKe Lightro

    22 Temmuz 2014
  • Blu animations and other videos

    Blu animatio

    15 HAZİRAN 2007
  • tsweeney79

    tsweeney79

    21 Ocak 2008