在Python中,我们可以使用str()将int转换为String。
str()
num1 = 100 print(type(num1)) # num2 = str(num1) print(type(num2)) #
输出量:
上一篇:Python中如何使用int()
下一篇:python中while语句有什么用