需解决问题: 1.离散点进行平滑曲线画法 https://blog.csdn.net/cdqn10086/article/details/70143616 def draw_curve(x,y,img_save_dir,auc): xnew = np.linspace(x.min(),x.max(),300) y_smooth = spline(x,y,xnew) plt.plot(xnew,y_smooth) plt.savefig(img_save_dir) 2.把auc计算的结果画到图片上