MAC系统可以试试 import matplotlib.pyplot as plt # 解决中文乱码 plt.rcParams['font.sans-serif'] = ['Arial Unicode MS']