python3读取csv文件

代码如下

import csv
with open('D:\\abc\\userinfo.csv',newline='') as f:
    reader = csv.reader(f)
    for row in reader:
        print(row)

 

posted @ 2017-03-13 14:07  TesterLiao  阅读(3471)  评论(1编辑  收藏  举报