摘要: import csv #打开文件,用with打开可以不用去特意关闭file了,python3不支持file()打开文件,只能用open() with open("info.csv","r") as csvfile: #读取csv文件,返回的是迭代类型 read = csv.reader(csvfile) for i in read: print(... 阅读全文
posted @ 2016-12-07 17:12 龙心呢 阅读(4238) 评论(0) 推荐(0) 编辑