from itertools import islice with open('xxx', 'r') as f: for line in islice(f.readlines(), 1, None): print(line)
上述代码可以实现从第二行(下标为1)打印数据