Б
Size: a a a
Б
Б
Б
Б
Б
Б
СК
py3
import struct
i = int.to_bytes(123, 1, "little")
print(int.from_bytes(i, 'little'))
print(struct.unpack("<B", i))
123
(123,)
SK
СК
py3
import struct
i = int.to_bytes(123, 2, "little")
print(int.from_bytes(i, 'little'))
print(struct.unpack("<H", i))
print(i)
123
(123,)
b'{\x00'
TH
py3
import struct
i = int.to_bytes(123, 1, "little")
print(int.from_bytes(i, 'little'))
print(struct.unpack("<B", i))
123
(123,)
СК
СК
СК
СК
SK
P
СК
SK
СК