标签:xxx div 读取文件 adl for open line nes isl
from itertools import islice with open(‘xxx‘, ‘r‘) as f: for line in islice(f.readlines(), 1, None): print(line)
上述代码可以实现从第二行(下标为1)打印数据
标签:xxx div 读取文件 adl for open line nes isl
原文地址:https://www.cnblogs.com/wangmantou/p/9066114.html