hex(x) 将整数x转换为16进制字符串时间:2021-02-08 20:59:35 >>> a = 122 >>> b = 344 >>> c = hex(a) >>> d = hex(b) >>> c '0x7a' >>> d '0x158' >>>