Код: Выделить всё
in_bytes = b'abcd\x12\x34\x56\x78\x90\xff\xff\xde\xad\xbe\xef'
expected = 'abcd\x12\x34\x56\x78\x90\xff\xff\xde\xad\xbe\xef'
Подробнее здесь: https://stackoverflow.com/questions/798 ... t-encoding
Код: Выделить всё
in_bytes = b'abcd\x12\x34\x56\x78\x90\xff\xff\xde\xad\xbe\xef'
expected = 'abcd\x12\x34\x56\x78\x90\xff\xff\xde\xad\xbe\xef'