python TypeError: can only concatenate str (not "int") to str

python TypeError: can only concatenate str (not  

改正之后为(使用python的str()方法即可):

python TypeError: can only concatenate str (not  

关于python的str方法可以参考下面的链接:

https://www.runoob.com/python/python-func-str.html 

你可能感兴趣的:(python,python)