python报错:can only concatenate str (not “int“) to str

类型错误:can only concatenate str (not “int”) to str
只能将str(而不是“int”)连接到str
拼接字符串时,有类型为int的变量,使用 str()函数 将int转为str即可。

猜你喜欢

转载自blog.csdn.net/rfdjds/article/details/119674939