我们只需要在导入import matplotlib.pyplot as plt后 输入以下这串,图像出来后可以显示出中文 plt.rcParams['font.sans-serif'] = ['SimHei']