python 字符编码 转换
摘要:
python 内部使用unicode表示字符串,自然当需要编码转换时,要用unicode作为中间“中间编码”, eg: gbk转utf-8时, gbk --> unicode --> utf-8 分解为两个步骤: 1. gbk --> unicode python语法:字符串.decode('gbk 阅读全文
posted @ 2016-11-22 20:33 折翼的飞鸟 阅读(506) 评论(0) 推荐(0)
浙公网安备 33010602011771号