为什么显示x1,x2 without function
为什么显示x1,x2 without function
import math
def quadratic_equation(a, b, c):
x1=0
x2=0
dierta=math.sqrt(b*b-4*a*c)
x1=(-b+dierta)/(2*a)
x2=(-b-dierta)/(2*a)
return x1,x2
print quadratic_equation(2, 3, 0)
print quadratic_equation(1, -6, 5)