Discuss / Python / 直接这么写可以吗

直接这么写可以吗

Topic source

MitsUI黄畅

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

print(hex(n1)) print(hex(n2))

MitsUI黄畅

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

print(str(hex(n1)),str(hex(n2))) 题目原来是要字符串

hex()函数返回值就是字符串,不需要类型转换


  • 1

Reply