Discuss / Python / 直接 str() 函数强制转换

直接 str() 函数强制转换

Topic source

青年小哲

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

# -*- coding: utf-8 -*-

n1 = 255

n2 = 1000

print(str(hex(n1)))

print(str(hex(n2)))


  • 1

Reply