Matplotlib 发表于 2018-04-05 1234567891011import matplotlib.pyplot as pltx=[]for i in range(len(math_score)): x.append(i)plt.plot(x,math_score,label='math',color='r')plt.plot(x,physical_score,label='physic',color='b')plt.plot(x,chemistry_score,label='chemistry',color='g')plt.legend()plt.show()