python 读取 csv 中文 乱码 解决办法

来源:互联网 发布:竞翔通软件 编辑:程序博客网 时间:2024/06/06 04:29

亲测好使,python 2,3都可以

import codecswith codecs.open('h.csv', 'rb', 'gb2312') as csvfile:    for line in csvfile:        print line
原创粉丝点击