问题 在做数据可视化时常需要用到matplotlib画图,下图中的中文无法显示: 解决方法 加入下面两行代码 plt.rcParams['font.sans-serif'] = ['SimHei'] plt.rcParams['axes.unicode_minus'] = False