predict_a = - w[1] / w[2]#斜率
predict_b = - w[0] / w[2]
w[2]是y的权重值,w[1]是x的权重值,w[0]是偏置由w[2]*y + w[1]*x + w[0] = 0 a = -w[1]/w[2]b = -w[0]/w[2]