decode和encode区别在python中进行编码转换都是通过unicode作为中间值实现的。decode的作用是将其他编码的字符串转换成unicode编码,如str1.decode(gb2312),表示将gb2312编码的字符串转换成unicode编码。
在线咨询:
邮箱: xwei067@foxmail.com
工作时间:周一至周五,9:00-17:30,节假日休息