In Python, hexadecimal strings are prefixed with 0x . ... pythonCopy hex_s = '0xEFA' a = int(hex_s,16) hex_n = hex(a) print(hex_n). Output:.
確定! 回上一頁