摘要: 正常思路 f=open('test.txt','br') s=f.readlines() print(s[-1].decode()) 这种思路,如果文件过大则处理过慢,暂用内存太多 优化思路 with open('test.txt','rb') as f: book = -10 #设置偏移量大概估算 阅读全文
posted @ 2020-04-01 15:26 彡心如止水彡 阅读(281) 评论(0) 推荐(0)