这个错误在哪里,大佬们
def quadratic_equation(a, b, c):
n=(b*b-4*a*c)**1/2
return (-b+n)/(2*a),(-b-n)/(2*a)
print quadratic_equation(2, 3, 0)
print quadratic_equation(1, -6, 5)
def quadratic_equation(a, b, c):
n=(b*b-4*a*c)**1/2
return (-b+n)/(2*a),(-b-n)/(2*a)
print quadratic_equation(2, 3, 0)
print quadratic_equation(1, -6, 5)
2018-11-12
举报