UndefinedError: ‘int object’ has no attribute ‘endswith’ UndefinedError: ‘int object’ has no attribute ‘endswith’ 这里是因为给图表设置width,height里面要给字符串,不能是int