Python How to convert int to String
By:Roy.LiuLast updated:2019-08-11
In Python, we can use str() to convert a int to String.
num1 = 100 print(type(num1)) # <class 'int'> num2 = str(num1) print(type(num2)) # <class 'str'>
Output
<class 'int'> <class 'str'>
References
From:一号门
COMMENTS