一直报错SyntaxError
都挠秃了,为啥我这个不行import math def quadratic_equation(a, b, c): x=b*b-4*a*c if x>0: return (math.sqrt(x)-b)/(2*a),(-math.sqrt(x)-b)/(2*a) else if x=0: return -b/(2*a) else: return none print quadratic_equation(2, 3, 0) print quadratic_equation(1, -6, 5)