python报错:can only concatenate str (not “int“) to str
类型错误:can only concatenate str (not “int”) to str只能将str(而不是“int”)连接到str拼接字符串时,有类型为int的变量,使用str(int类型变量)将int转为str即可。
文章共53字 · 阅读需要大约1分钟
一键AI生成摘要,助你高效阅读
问答
·
类型错误:can only concatenate str (not “int”) to str
只能将str(而不是“int”)连接到str
拼接字符串时,有类型为int的变量,使用 str()函数 将int转为str即可。
更多推荐
已为社区贡献1条内容
所有评论(0)