from matplotlib import font_manager # 设置字体 font_path = "./simhei.ttf" font_prop = font_manager.FontProperties(fname=font_path)