Код: Выделить всё
x = bytearray([0x30,0x31,0x32,0x33,0x00,0x00])
y = x.decode()
z = y.rstrip()
print(z)
Подробнее здесь: https://stackoverflow.com/questions/788 ... f-a-string
Код: Выделить всё
x = bytearray([0x30,0x31,0x32,0x33,0x00,0x00])
y = x.decode()
z = y.rstrip()
print(z)