Python CSV - 包含NULL Byte的行的错误

时间:2018-03-02 00:33:28

标签: python python-3.x csv

在Python 3中,这是解决CSV中行中找到的NULL字节的最佳方法吗?

file = open("file.csv", "rb")
data = csv.reader((line.replace('\0','') for line in file), delimiter=",")

0 个答案:

没有答案