Discuss / Python / zuoye

zuoye

Topic source

伏瑞斯

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

print(str(hex(n1)))

print(str(hex(n2)))

小狗榨汁

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

hex()函数处理过的就是字符串啊,不需要经过str()转换了

print(type(hex(10)))

是啊


  • 1

Reply