import binascii
def hex2str(hexstr):
bytestr = binascii.unhexlify(hexstr.replace(" ", ""))
rststr = bytestr.decode('utf-8')
return rststr
hexstr="46 45 36 61 32 30 "
rststr=hex2str(hexstr)
import binascii
def hex2str(hexstr):
bytestr = binascii.unhexlify(hexstr.replace(" ", ""))
rststr = bytestr.decode('utf-8')
return rststr
hexstr="46 45 36 61 32 30 "
rststr=hex2str(hexstr)