這樣為啥不能通過哦??
import math
def quadratic_equation(a, b, c):
? ? if a == 0:
? ? ? ? return -1(c/b)
? ? else:
? ? ? ? if b*b >= 4*a*c:
? ? ? ? ? ? t = math.sqrt(b*b - 4*a*c)
? ? ? ? ? ? return (-b - ?t)/(2*a), (-b + ?t)/(2*a)
? ? ? ? else:
? ? ? ? ? ? return
這樣為啥不能通過哦??
2019-05-10
return -(c/b)
2019-01-30
要求是什么