Python program reads all lines

Posted: March 17, 2015 in Python
Tags:

Bu kod parçacığı ad metin belgesinin içeriğini ekrana yansıtır.

f = open(r”C:\ad.txt”, “r”)
for satır in f.readlines():
print(satır, end=””)

32

Leave a comment