摘要: 因为csv.writerow() 方法会造成读取时每条数据后多一条空数据 解决方案如下: 分为两种情况 python2 和 python3 先说python2版本 with open('xxx.csv','wb+',encoding='utf-8') as csvfile:#将写入方式改为wb+ 二 阅读全文
posted @ 2018-12-14 12:28 贫道从来不吃素 阅读(6009) 评论(0) 推荐(0)