python print()函数
输出字符串和相对应变量取值
initialB=0
initialW=0
print("start gredient descent at b={0},w={1},error={2}"
.format(initialB,initialW,compute_error_for_line_given_points(initialB, initialW, points)))
输出结果:
start gredient descent at b=0,w=0,error=5565.107834483211
今天先简单写这么多,改天来补充其他的