Python –如何将int转换为String
宋雪维
2020-12-05 20:03:238052浏览 · 0收藏 · 0评论
在Python中,我们可以使用str()
将int转换为String。
num1 = 100 print(type(num1)) # <class 'int'> num2 = str(num1) print(type(num2)) # <class 'str'>
输出量:
<class 'int'> <class 'str'>
本文转载自: https://blog.csdn.net/
关注公众号,随时随地在线学习