将16进制utf-8编码转为汉字

ss = "\xe6\x93\x8d\xe4\xbd\x9c\xe6\x88\x90\xe5\x8a\x9f"
b = ss.encode('raw_unicode_escape').decode()
print(b)


image.png

你可能感兴趣的:(将16进制utf-8编码转为汉字)