Created
March 8, 2020 15:55
-
-
Save ilkermanap/8fe6ae3ce2466b4b2a55ee5aee6c9157 to your computer and use it in GitHub Desktop.
ozel istek uzerine basit uygulama
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
harita = open("hastamap.txt","r").readlines() | |
def ekle(girdidosyasi, id, ciktidosyasi): | |
satirlar = open(girdidosyasi, "r").readlines() | |
f = open(ciktidosyasi, "a") | |
for satir in satirlar: | |
f.write(f"{id},{satir}") | |
f.close() | |
for satir in harita: | |
dosya, id = satir.strip().split() | |
ekle(dosya, id, "cikti.txt") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1,2,3,1,2 | |
3,2,1,2,3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1,2,3,1,2 | |
3,2,1,2,3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1,2,3,1,2 | |
3,2,1,2,3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hasta1.txt 101_hasta1 | |
hasta2.txt 102_hasta2 | |
hasta3.txt 103_hasta3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment