You can use binascii.hexlify()
:
In [25]: strs=b'\x0f\x00\x00\x00NR09G05164\x00'
In [26]: import binascii
In [27]: binascii.hexlify(strs)
Out[27]: b'0f0000004e52303947303531363400'
3
solved Python : convert a hex string
You can use binascii.hexlify()
:
In [25]: strs=b'\x0f\x00\x00\x00NR09G05164\x00'
In [26]: import binascii
In [27]: binascii.hexlify(strs)
Out[27]: b'0f0000004e52303947303531363400'
3
solved Python : convert a hex string