我正在尝试读取csv文件。这是我的代码:
import csv
openFile = open('example.csv')
fileRead = csv.reader(openFile)
fileRead = list(fileRead)
print fileRead[0]
我收到此错误:
Traceback (most recent call last):
File "C:/Users/bob/PycharmProjects/Random/random.py", line 5, in <module>
fileRead = list(fileRead)
_csv.Error: line contains NULL byte