I have the following byte array :
b'\x80UTI\xfc\x7f\x00\x00'
I want to convert it to :
'\x80UTI\xfc\x7f\x00\x00'
How can i do that in python ?
I have the following byte array :
b'\x80UTI\xfc\x7f\x00\x00'
I want to convert it to :
'\x80UTI\xfc\x7f\x00\x00'
How can i do that in python ?
Convert it to string with str()
and then some string manipulation
>>> x = b'\x80UTI\xfc\x7f\x00\x00'
>>> y = str(x)[1:].strip("'")
>>> print(y)
x80UTI\xfc\x7f\x00\x00