1. 下载chardet
2. 在命令提示符里转到chardet的存放目录,执行python setup.py install
3. 在代码中用 import chardet 导入模块
4. 用法:chardet.detect("str")
posted on 2015-04-07 09:05 GreenBean 阅读(169) 评论(0) 编辑 收藏 举报
Powered by: 博客园 Copyright © 2024 GreenBean Powered by .NET 8.0 on Kubernetes