为什么第二个print(f.tell()会报错
f = open(r'C:\Users\Administrator\Desktop\1.py',"r") print(f.read(3)) print(f.tell()) print(f.readlines(3)) print(f.tell()) print(f.readline()) f.close()
#
f = open(r'C:\Users\Administrator\Desktop\1.py',"r") print(f.read(3)) print(f.tell()) print(f.readlines(3)) print(f.tell()) print(f.readline()) f.close()
#
2021-01-10
举报