CSV错误:行包含NULL字节

时间:2017-02-24 19:08:55

标签: python csv

我正在尝试读取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

0 个答案:

没有答案