Posted By


headsheez on 02/12/10

Tagged


Statistics


Viewed 145 times
Favorited by 0 user(s)

initial csv print routine


/ Published in: Python
Save to your folder(s)



Copy this code and paste it in your HTML
  1. import csv
  2.  
  3. csvReader = csv.reader(open('dat.csv'))
  4. colhead=csvReader.next()[:-1]
  5. print colhead
  6. for row in csvReader:
  7. print row

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.