一下的功能是读取指定位置的字符 f = open('log',mode='a+',encoding='utf-8') f.write('佳琪') count = f.tell() #光标的位置 f.seek(count