摘要: decode 将其它编码的字符串转换成unicode编码,例如:str1.decode("gb2312"),表示将gb2312编码的字符串转换成unicode编码 encode 将unicode编码的字符串转换成其它编码的字符串,例如:str2.encode("gb2312"),表示将unicode 阅读全文
posted @ 2017-03-15 10:45 满月青灰 阅读(112) 评论(0) 推荐(0) 编辑