一、linecache模块函数
1、linecache.getlines(filename, lineno[, module_globals])
从文件中读取内容,得到第 lineno行
2、linecache.clearcache()
清除现有的文件缓存。
3、linecache.checkcache([filename])
缓存中的文件可能已在磁盘上更改,并且需要更新的版本
Python模块之linecache(对文件的指定读取)
最新推荐文章于 2022-01-12 19:55:10 发布