python 逆序按行读取文件
摘要:
How to read a file in reverse order? import os def readlines_reverse(filename): with open(filename) as qfile: qfile.seek(0, os.SEEK_END) position = qf 阅读全文
posted @ 2020-12-18 15:07 明天有风吹 阅读(2801) 评论(0) 推荐(0) 编辑