添加引用及相关代码即可:
from matplotlib.pyplot import mpl
mpl.rcParams['font.sans-serif'] = ['SimHei']
添加引用及相关代码即可:
from matplotlib.pyplot import mpl
mpl.rcParams['font.sans-serif'] = ['SimHei']
转载于:https://www.cnblogs.com/yanmingjiang/p/9651950.html