问题描述:
AttributeError: '_csv.reader' object has no attribute 'next'
_csv.Error: iterator should return strings, not bytes (did you open the file in text mode?)
解决方案:
For version 3.2 and above
Change: csv_file_object.next() To: next(csv_file_object)
then I get another error:
_csv.Error: iterator should return strings, not bytes (did you open the file in text mode?)
Edit: Figured it out needed to change rb to rt
Finally, it works.