摘要: 结果: {u'code': 0, u'data': {u'city': u'\u5357\u4eac', u'area_id': u'', u'county_id': u'xx', u'region_id': u'320000', u'area': u'', u'city_id': u'320100 阅读全文
posted @ 2018-05-04 11:31 繁华博客 阅读(245) 评论(0) 推荐(0)
摘要: s = '匆匆'print(s)s1 = s.decode("utf-8") # utf-8 转成 Unicode,decode(解码)需要注明当前编码格式print(s1,type(s1))s2 = s1.encode("gbk") # unicode 转成 gbk,encode(编码)需要注明生成的编码格式print(s2,type(s2))s3 = s1.encode("utf-8") # ... 阅读全文
posted @ 2018-05-04 11:27 繁华博客 阅读(304) 评论(0) 推荐(0)