摘要:
decode:将其他编码转换成unicode a = 'aabcde'.decode('gb2312') print type(a) b = 'bbddee'.decode('utf8') print type(b) 打印结果:<type 'unicode'><type 'unicode'>encode:将unicode编码转换成其他编码 阅读全文
posted @ 2012-12-13 16:14
践道者
阅读(1751)
评论(0)
推荐(0)