会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Python Resident
博客园
首页
新随笔
联系
订阅
管理
2012年12月13日
decode,encode函数应用
摘要: 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 践道者
阅读(1745)
评论(0)
推荐(0)
编辑
公告