您现在的位置是:课程教程文章
python如何查看编码类型
2023-12-18 17:40课程教程文章 人已围观
python查看编码类型的方法:1、输入“import chardet”命令导入模块;2、输入“chardit=chardet.detect(c)”命令查看编码(c为要查看的编码),输出后的结果即为要查看的编码类型。
查看编码类型
import chardet chardit1 = chardet.detect(cf_r) #cf_r为要查看的编码 print (cf_r['encoding'])
课程教程:python如何查看编码类型推荐课程:Python 基础入门教程
上一篇:pycharm怎么全局搜索
下一篇:没有了