读取一个csv文件失败,提示:
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb9 in position 16: invalid start byte
解决办法:使用Notepad++打开该csv文件,然后转为UTF-8编码
import csv
csv_reader=csv.reader(open('P020180206560372967623.csv',encoding='utf-8'))
for row in csv_reader:
print(row)