value=0x1234 print(value.to_bytes(2,"little").hex()) print(value.to_bytes(2,"big").hex())