# 已有字體 import matplotlib.font_manager a = sorted([f.name for f in matplotlib.font_manager.fontManager.ttflist]) for i in a: print(i) # 從新加載字體 from matplotlib.font_manager import _rebuild _rebuild() # 引入 from matplotlib import pyplot as plt