Python hex () method is used to convert an integer value to a hexadecimal string. ... a = hex(12). b = hex(-12). print(a). print(b). print(type(a)). Output.
確定! 回上一頁