Matplotlib画图 1. Matplotlib输出中文显示问题 解决方法: 加上两行代码就行 from pylab import mpl mpl.rcParams[‘font.sans-serif] = [‘SimHei’]