python读取文件指定行内容

import linecache
text=linecache.getline(r'路径',行数)
posted @ 2021-04-12 10:27  小Aer  阅读(16)  评论(0)    收藏  举报  来源