python绘图显示中文字体的解决方案

📝

内容提要

importmatplotlib.pyplotaspltimportmatplotlibasmpl'''mpl.rcParams['font.sans-serif']=['FangSong']设置中文字体的方法mac不适用,windows应该可以'''font=mpl.font_manager.FontProperties(fname='/System/Library/Fonts/STHei...

➡️

继续阅读