with open(fpath, 'rb') as f:
result = chardet.detect(f.read())
e = result['encoding']
print(e)
读取csv文件编码的方法
点赞
收藏
读取csv文件编码的方法
with open(fpath, 'rb') as f:
result = chardet.detect(f.read())
e = result['encoding']
print(e)