标签:escape int unicode encode decode div odi python coding
>>> a = u‘\xb2\xe2\xca\xd4‘ >>> b = a.encode(‘raw_unicode_escape‘) >>> print b 测试 >>> c = a.encode(‘latin1‘) >>> print c 测试
unicode.encode(text, encoding=‘utf-8‘)
decode(‘unicode-escape‘)
标签:escape int unicode encode decode div odi python coding
原文地址:https://www.cnblogs.com/angdh/p/11822876.html