python中用matplotlib做图汉字显示的是小方块

from pylab import mpl mpl.rcParams['font.sans-serif'] = ['SimHei'] 在代码开头加上以上代码指定中文字体便可字体
相关文章
相关标签/搜索