天天看點

python的matplotlab繪圖時中文亂碼,報錯的解決問題,設定預設字型

windows下

設定中文字型

from pylab import mpl
mpl.rcParams['font.sans-serif']=['FangSong']