python在给变量赋值时默认格式为int。
转换为str的方法为:
str()
如图:
python中int与str互转
原文:https://www.cnblogs.com/longxiaojiang/p/9252011.html