python读取csv文件

# coding: utf-8

import csv

csvfile = open('test.csv', 'rb')
reader = csv.reader(csvfile)

for line in reader:
    print line

csvfile.close()

 

posted @ 2016-04-25 12:55  Xiao|Deng  阅读(518)  评论(0编辑  收藏  举报