import matplotlib.font_manager as fm
>>> fm.findfont('Arial') # 随便找一个不存在的就行
findfont: Font family ['Arial'] not found. Falling back to DejaVu Sans.
'/home/user01/.conda/envs/tcmdataset/lib/python3.11/site-packages/matplotlib/mpl-data/fonts/ttf/DejaVuSans.ttf'
可以看到出现了路径'/home/user01/.conda/envs/tcmdataset/lib/python3.11/site-packages/matplotlib/mpl-data/fonts/ttf/DejaVuSans.ttf'
ls一下/home/user01/.conda/envs/tcmdataset/lib/python3.11/site-packages/matplotlib/mpl-data/fonts/ttf/
就能看到所有的了