python中int与str互转

python学习网 2018-07-02 23:23:02

python在给变量赋值时默认格式为int。

转换为str的方法为:

str()

如图:

 

阅读(1058) 评论(0)