读取指定行

import linecache
the_line = linecache.getline( 'd:/test.txt' , 1)

猜你喜欢

转载自www.cnblogs.com/crac/p/9173012.html