/ Published in: Python
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
import csv csvReader = csv.reader(open('dat.csv')) colhead=csvReader.next()[:-1] print colhead for row in csvReader: print row
import csv csvReader = csv.reader(open('dat.csv')) colhead=csvReader.next()[:-1] print colhead for row in csvReader: print row