如是字符串的16进制:str_hex = "0032D5" 直接转成10进制:int(str_hex,16) 代码: >> str_hex = "0032D5" >> int(str_hex,16) 13013