matplotlib画图不能显示中文,只需要添加下列两行代码即可解决: import matplotlib matplotlib.rc('font', family='FangSong') 画出来的图像即可显示中文