python 练习题:请利用Python内置的hex()函数把一个整数转换成十六进制表示的字符串

# -*- coding: utf-8 -*-
# 请利用Python内置的hex()函数把一个整数转换成十六进制表示的字符串
n1 = 255
n2 = 1000
print(hex(n1))
print(hex(n2))

  

猜你喜欢

转载自www.cnblogs.com/chling/p/11724718.html