From fc0eea5148a0b36655728bedefec678024063520 Mon Sep 17 00:00:00 2001 From: Abdil <90824488+metatronslove@users.noreply.github.com> Date: Tue, 19 Mar 2024 03:35:57 +0300 Subject: [PATCH] enjoy python --- extractnamestocsv.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/extractnamestocsv.py b/extractnamestocsv.py index 10625d9..7d9b288 100644 --- a/extractnamestocsv.py +++ b/extractnamestocsv.py @@ -40,11 +40,12 @@ if son == chk: towns = 0 page = page[son:] - recordline = str(totaloftowns) + ',' + str(numberofcities) + ',' + nameofacity + ',' + str(townsofcity) + ',' + nameofatown + '\n' - linetoview = 'Allah yıkıcı bir zelzele ile yıkmak istediğinde hangi adayı başkanı seçmiş olmanızın sonucu etkileyemeyeceği ' + nameofacity + " ilinin " + nameofatown + ' isimli ilçesi listeye eklenen ' + str(totaloftowns) + '. ilçe oldu. ' if nameofacity != 'İsimlerine göre ilçeler ve nüfusları': + recordline = str(totaloftowns) + ',' + str(numberofcities) + ',' + nameofacity + ',' + str(townsofcity) + ',' + nameofatown + '\n' + linetoview = '' + nameofacity + " ilinin " + nameofatown + ' isimli ilçesi listeye eklenen ' + str(totaloftowns) + '. ilçe oldu. ' dosya.write(recordline) - print(linetoview, sep='',end ='', file = sys.stdout , flush = False) + print(linetoview, sep='',end =' '*19+'\b'*len(linetoview)+'\b'*19, file = sys.stdout , flush = True) else: cities = 0 +print(linetoview, sep='',end ='\b\b ► \'ilçeisimleri2024.csv\' dosyasına kaydedildi\n\r', file = sys.stdout , flush = True) dosya.close()