f.readline example 1
This commit is contained in:
parent
f6adb94839
commit
ba439fc907
6
python-temel/f.readline.py
Normal file
6
python-temel/f.readline.py
Normal file
|
@ -0,0 +1,6 @@
|
|||
with open('sample.py', 'r') as f:
|
||||
while True:
|
||||
s = f.readline()
|
||||
if s == '':
|
||||
break
|
||||
print(s, end='')
|
Loading…
Reference in New Issue
Block a user