python3 16进制和bytes 互转
to_bytes: bytes.fromhex("0064")
to_hex: data_bytes.hex()
python3 10进制和bytes 互转
to_bytes: decimal_number.to_bytes(length=length, byteorder="big", signed=True)
to_decimal: int.from_bytes(bytes=data_bytes, byteorder="big", signed=True)
python3 16进制和10进制 互转
hex_to_decimal: int.from_bytes(bytes=bytes.fromhex("FF1A"), byteorder="big", signed=True)
decimal_to_hex: decimal_number.to_bytes(length=length, byteorder="big", signed=True).hex()