摘要: 下载库 pip install chardet 执行 import chardet f = open('a.doc',r) data = f.read() print chardet.detect(data) 结果 {'confidence': 0.64465744, 'encoding': 'ut 阅读全文
posted @ 2016-05-28 20:14 为了生活而学习 阅读(12122) 评论(0) 推荐(0) 编辑