【Python】hex to int

hex string to int value.

def hexStringToInt(hex_str):
    return int(hex_str.encode("hex"), 16)

Leave a Reply