首页 > 技术文章 > python 判断 txt 编码方式
qingyuanjushi 2019-02-25 19:12 原文
import chardet f = open('/path/file.txt',r) data = f.read() print(chardet.detect(data)