python编码知识点(倒序更新)

python编码知识点(倒序更新)

decode和encode区别在python中进行编码转换都是通过unicode作为中间值实现的。decode的作用是将其他编码的字符串转换成unicode编码,如str1.decode(gb2312),表示将gb2312编码的字符串转换成unicode编码。

联系我们

联系我们

0577-28828765

在线咨询: QQ交谈

邮箱: xwei067@foxmail.com

工作时间:周一至周五,9:00-17:30,节假日休息

返回顶部