2016年8月20日
摘要: decode的作用是将其他编码的字符串转换成unicode编码, 如str1.decode('gb2312'),表示将gb2312编码的字符串转换成unicode编码。 encode的作用是将unicode编码转换成其他编码的字符串, 如str2.encode('gb2312'),表示将unicod 阅读全文
posted @ 2016-08-20 15:48 安徒山 阅读(214) 评论(0) 推荐(0) 编辑