Arama Sonuçları - Sorgulanan Kelime: *

  1. ginowhis

    TXT'den veri alma ve kaydetme

    with open('the-zen-of-python.txt') as f: while True: line = f.readline() if not line: break print(line.strip()) more_lines = ['', 'Append text files', 'The End'] with open('readme.txt', 'a') as f: f.write('\n'.join(more_lines))
Geri
Yukarı