Error: iterator should return strings, not bytes (did you open the file in text mode?)
今天写python的时候读取csv文件有一行dataset = open('dataindex.csv', 'rb')结果报错:Error: iterator should return strings, not bytes (did you open the file in text mode?)上网查了查,把代码改成了dataset = open('dataindex.csv', 'r')结果...
原创
2018-03-06 09:37:43 ·
3756 阅读 ·
0 评论