单独导入matplotlib包,输入如下代码
myfont = matplotlib.font_manager.FontProperties(fname=‘C:\Windows\Fonts\simsun.ttc’)