函数功能:给图形加上图例。 matplotlib.pyplot.legend(*args, **kwargs)API loc:图例在图中的地理位置 如 plt.legend(loc=‘upper left’)图例在左上角