关于python学习中遇到的can only concatenate str (not "int")to str 这种错误
关于python学习中遇到的can only concatenate str (not “int”)to str 这种错误经过学习得到了以下结论:1、字面上理解即只能用字符串与字符串拼接,笔者自己便是将int的数字与字符串拼接时得到这种报错2、解决方式:根据需要转换数据类型如:字符串转换为int int_data=int(str_data)nt 转换为字符串 str_data...
原创
2020-02-24 18:04:32 ·
79741 阅读 ·
0 评论