常规解法1:hexadecimal = input() maped = { "A": 10, "a": 10, "B": 11, "b": 11, "C": 12, "c": 12, "D": 13, "d": 13, "E": 14, "e": 14, "F": 15, "f": 15, } def cal_hex_to_int(hex_str: str): handle = hex_str.split("0x")[1] res = 0 handle_len = l...