首页
技术博客
登录
6mi
u
盘
搜
搜 索
技术博客
matplotlib 无法显示中文
matplotlib 无法显示中文
tech
2026-03-17
0
matplotlib 无法显示中文时,只需要在导入matplotlib模块后面添加一下代码即可正常显示中文
from pylab import mpl mpl.rcParams['font.sans-serif']=['SimHei'] # 简体 mpl.rcParams['axes.unicode_minus']= False
转载请注明原文地址:https://tech.qufami.com/read-27379.html
最新回复
(
0
)