摘要: # Python的标准库linecache模块非常适合这个任务 import linecache the_line = linecache.getline('d:/FreakOut.cpp', 222) print (the_line) # linecache读取并缓存文件中所有的文本, # 若文件 阅读全文
posted @ 2018-07-30 16:41 tresser 阅读(3672) 评论(0) 推荐(0) 编辑