使用chardet判断文件使用了哪个字符编码

结果解析

encoding 表示用的哪种字符编码

confidence 表示可信度 1表示 100%可信

language 表示文本的语言