参考方法如下:逐行处理:for line in open("samples/sample.csv"):title, year, director = line.split(",") //以“,”号为分割,按逗号将数据分成三部分;print year, title 使用csv模块处理:import csv reader = csv.reader(open("samples\sample.csv"))for title, year, director in ...