ref: https://stackoverflow.com/questions/24120023/strange-error-with-matplotlib-axes-labels 画图的时候手欠写成了: plt.xlabel = 'x' 实际上应该是 plt.xlabel('x') 因为已经将plt.xlable 赋值为了 ‘x‘ 字符串,所以自然就’str’ object is not callable