file = open('txt_file.txt', mode='r', encoding='utf-8') print(file.read(7)) # 读取7个字节 print(file.tell()) # 输出文件读取位置.
確定! 回上一頁