Discuss / Python / 用hex()函数把整数类型转换成16进制字符串

用hex()函数把整数类型转换成16进制字符串

Topic source

趁早_ing

#1 Created at ... [Delete] [Delete and Lock User]

n1 = 255

n2 = 1000

print('%s %s' % (hex(n1),hex(n2)))


  • 1

Reply