提示语法错误,实在看不出是什么问题?大神指导一下,谢谢
import math
def quadratic_equation(a, b, c):
if b*b-4*a*c<0:
return none
elif b*b-4*a*c==0:
return -(b/(2*a))
else t=math.sqrt(b*b-4*a*c)
x_1=((-b)+t)/(2*a)
x_2=((-b)-t)/(2*a)
return x_1,x_2
print quadratic_equation(2, 3, 0)
print quadratic_equation(1, -6, 5)