哪里有错啊
import math
def quadratic_equation(a, b, c):
s = math.sqrt(b**2-4*a*C)
if s >= 0:
return (-b + s)/(2*a),(-b-s)/(2*a)
else:
return
print quadratic_equation(2, 3, 0)
print quadratic_equation(1, -6, 5)
import math
def quadratic_equation(a, b, c):
s = math.sqrt(b**2-4*a*C)
if s >= 0:
return (-b + s)/(2*a),(-b-s)/(2*a)
else:
return
print quadratic_equation(2, 3, 0)
print quadratic_equation(1, -6, 5)
2016-10-22
举报