Study Notes (22): Python interview talking about the difference between 100 (based on Python3.x) -read, readline method and readlines

Learning immediately: https://edu.csdn.net/course/play/26755/340106?utm_source=blogtoedu

f=open(./files/readme.txt','r')

f.read (3) # reads the first three

f.seek (6) # pointer to the sixth

f.read (2) # two characters read from the sixth

Published 26 original articles · won praise 2 · Views 273

Guess you like

Origin blog.csdn.net/qq_35504363/article/details/104387740