摘要: python中的encode和decode: 首先,在Python中字符串的表示是 用unicode编码。所以在做编码转换时,通常要以unicode作为中间编码。 decode的作用是将其他编码的字符串转换成unicode编码,比如 a.decode('utf-8'),表示将utf-8编码的字符串转 阅读全文
posted @ 2016-12-11 16:54 holy_black_cat 阅读(11163) 评论(0) 推荐(1) 编辑