如何跳过标题行并开始从第2行读取文件?

最佳答案

with open(fname) as f:
    next(f)
    for line in f:
        #do something

07-22 08:52