Python 跳过第一行读取文件内容。

Python编程时,经常需要跳过第一行读取文件内容。

from itertools import islice  
input_file = open("C:\\Python34\\test.csv")  
for line in islice(input_file, 1, None):  
    do_readline()  


你可能感兴趣的:(Python 跳过第一行读取文件内容。)