2015年4月24日

Python 的 encode 和 decode

摘要: 记一下,备忘。Python 使用unicode,所以无论encode还是decode都是针对unicode来说的。encode:把unicode转为其他编码(gbk、utf8、gb2312等)。decode:把其他编码转为unicode码。比如字符串a为gb2312,想转为utf8:a.decode... 阅读全文

posted @ 2015-04-24 15:12 记不住 阅读(260) 评论(0) 推荐(0) 编辑

导航