请问在pycharm都运行成功了,为什么这里一直不通过
import math
def quadratic_equation(a, b, c):
x = math.sqrt(b * b - 4*a*c)
y1 = (-b - x)/(2*a)
y2 = (-b + x)/(2*a)
return y1,y2
print quadratic_equation(2, 3, 0)
print quadratic_equation(1, -6, 5)
import math
def quadratic_equation(a, b, c):
x = math.sqrt(b * b - 4*a*c)
y1 = (-b - x)/(2*a)
y2 = (-b + x)/(2*a)
return y1,y2
print quadratic_equation(2, 3, 0)
print quadratic_equation(1, -6, 5)
2018-08-10
举报