from matplotlib import font_manager
my_font = font_manager.FontProperties(fname='/System/Library/Fonts/PingFang.ttc')
#需要的属性后面添加 fontproperties=my_font
from matplotlib import font_manager
my_font = font_manager.FontProperties(fname='/System/Library/Fonts/PingFang.ttc')
#需要的属性后面添加 fontproperties=my_font
本文标题:解决中文显示
本文链接:https://www.haomeiwen.com/subject/shnobftx.html
网友评论