import matplotlib.pyplot as plt plt.rcParams['font.sans-serif']=['SimHei'] 转载于:https://www.cnblogs.com/aixiao07/p/10757869.html