python中int与str互转

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

转换为str的方法为:

str()

如图:

猜你喜欢

转载自www.cnblogs.com/longxiaojiang/p/9252011.html