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

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

  

posted @ 2019-10-23 10:23  it_逗逗  阅读(2925)  评论(0编辑  收藏  举报