Python3将字节类型的Unicode码转换为文字
bytes.decode('unicode_escape')
>>> s1 = '\u6ce8\u6768' >>> s1 '注杨' >>> s2 = b'\\u6ce8\\uff1a' >>> s2 b'\\u6ce8\\u6768' >>> print(s2) b'\\u6ce8\\u6768' >>> s2.decode('utf-8') '\\u6ce8\\u6768' >>> s2.decode('unicode_escape') '注杨'