python读取文件特定的行数

from itertools import islice
f=open("pyhpd.txt")
for a in islice(f,2,6):
    print(a)
相关文章
相关标签/搜索