"xe8x83xa5xe5xb8x85xe6x9dxb0"转中文
方法
import binascii
f = binascii.hexlify(16进制数据)
binascii.a2b_hex(f).decode(“utf8”)
例子
ccd=b’xe7xabxafxe5x8dx88xe5x81x87xe6x9cx9fxe5xb0xbexe5xa3xb0xe5xb1xb1xe8xa5xbfxe5xa4xaaxe5x8ex9fxe7x81xabxe8xbdxa6xe7xabx99xe8xbfx8exe6x9dxa5xe8xbfx94xe7xa8x8bxe5xaexa2xe6xb5x81xe9xabx98xe5xb3xb0’
f = binascii.hexlify(ccd)
print(binascii.a2b_hex(f).decode(“utf8”))
打印为 “端午假期尾声山西太原火车站迎来返程客流高峰”