TypeError: cannot concatenate ‘str’ and ‘int’ objects
print str + int 的时候就会这样了
python + 作为连接符的时候,不会自动给你把int转换成str
补充知识:TypeError: cannot concatenate ‘str’ and ‘list’ objects和Python读取和保存图片
运行程序时报错,然后我将list转化为str就好了。
利用”.join(list)
如果需要用逗号隔开,如1,2,3,4则使用’,’.join(list)
Python中plt可以显示和保存图片,不能使用mping