遇到过这个问题,加上 #coding=utf8 没有效果 在matplotlib制图代码加入 # 转换中文 plt.rcParams['font.sans-serif'] = ['SimSun'] 可解决问题