摘要: 1.中文语料常常遇到编码问题,将任意字符集文件转为utf-8编码 1 import chardet 2 import codecs 3 from django.utils.encoding import smart_text 4 5 def check_file_charset(file): #查看 阅读全文
posted @ 2020-12-07 15:41 最咸的鱼 阅读(373) 评论(0) 推荐(0) 编辑