file_name = "test1.txt" fp = open(file_name, "r",encoding='utf8') print("point is ", fp.tell()) str = fp.read(18) # 見說明1 print("read data is ", str) print("now position is ", fp.tell()) fp.seek(9,0) print("fp.seek(9,0) ow position is: ", fp.tell()) str=fp.readline() # 見說明4 print("fp.readline() read data is ", str) print("now point is", fp.tell())