python:16进制显示中文


s = b"unsubscribe_datapackage end , return ={'errorDescription': '\xe6\x93\x8d\xe4\xbd\x9c\xe6\x88\x90\xe5\x8a\x9f', 'code': 0, 'dataObject': {'img_type': u'1', 'addr': '\xe9\xbb\x91\xe9\xbe\x99\xe6\xb1\x9f\xe7\x9c\x811\xe5\x87\xa4\xe5\x9d\x8a\xe6\xa6\x86\xe8\xaf\x9b\xe5\x8d\x971\xe6\x9d\x9111\xe8\x89\xaf\xe6\x8c\x9d', 'ethnic': '\xe6\xb1\x89', 'order_id': u'600000000000008316030623789844', 'gender': '\xe7\x94\xb7', 'issue_authority': '', 'valid_period': '', 'id_code': '610422198108013218', 'real_name': '\xe6\x9d\x91\xe5\x88\xab'}}"
print(s.decode('utf-8'))


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM