成功解决TypeError: object of type 'int' has no len()目录 解决问题TypeError: object of type 'int' has no len() 解决思路类型错误:“int”类型的对象没有len()解决方法很简单的错误,但是粗心导致! 将 plt.xticks(3, ['111','222','333']) 改为 plt.xticks([1,2,3], ['111','222','333'])