python3中各个字符编码的转换
摘要:
a='我很好' ####python3 默认的编码为unicode###unicode>gb2312unicode_gb2312=a.encode('gb2312') ###因为默认是unicode所以不需要decode(),直接encode成想要转换的编码如gb2312print('我的gb231 阅读全文
posted @ 2017-05-09 20:13 恶魔的荣耀 阅读(22656) 评论(1) 推荐(1)
浙公网安备 33010602011771号