在画图时添加中文 pyplot.rcParams['font.sans-serif']=['simhei'] #显示中文标签 pyplot.rcParams['axes.unicode_minus']=False