和普通文件一样读取。csv中文件数据项有逗号划分开。
infile = open("data.csv", 'r')for line in infile: data = line.rstrip().split(',') print(data)