for idx, val in enumerate("first,second,third".split(',')): print idx, val
Måske noget i stil med:Python kode for idx, val in enumerate("first,second,third".split(',')): print idx, val
import csv line_number = 0 with open('Film.csv', 'rb') as f: mycsv = csv.reader(f) mycsv = list(mycsv) for d in range(0,6): print mycsv[0][d]