📜  python hex - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:41.419000             🧑  作者: Mango

代码示例4
number = 435
print(number, 'in hex =', hex(number))

number = 0
print(number, 'in hex =', hex(number))

number = -34
print(number, 'in hex =', hex(number))

returnType = type(hex(number))
print('Return type from hex() is', returnType)