方法
import binascii
f = binascii.hexlify(16进制数据)
binascii.a2b_hex(f).decode(“utf8”)

例子
ccd=b’\xe7\xab\xaf\xe5\x8d\x88\xe5\x81\x87\xe6\x9c\x9f\xe5\xb0\xbe\xe5\xa3\xb0\xe5\xb1\xb1\xe8\xa5\xbf\xe5\xa4\xaa\xe5\x8e\x9f\xe7\x81\xab\xe8\xbd\xa6\xe7\xab\x99\xe8\xbf\x8e\xe6\x9d\xa5\xe8\xbf\x94\xe7\xa8\x8b\xe5\xae\xa2\xe6\xb5\x81\xe9\xab\x98\xe5\xb3\xb0’

f = binascii.hexlify(ccd)

print(binascii.a2b_hex(f).decode(“utf8”))

打印为 “端午假期尾声山西太原火车站迎来返程客流高峰”

相关文章:

  • 2022-12-23
  • 2021-11-20
  • 2022-12-23
  • 2021-12-11
  • 2021-12-04
  • 2022-01-06
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-24
  • 2021-09-29
  • 2021-07-25
相关资源
相似解决方案