To do this, you just need to pass it your hexadecimal string and the base, in this case, 16 . hex = "0xFF" dec = int(hex, 16) print(dec)
確定! 回上一頁