d = b*b - 4*a*c if d < 0: return('方程无解') x1 = (-b + math.sqrt(d)) / (2*a) x2 = (-b - math.sqrt(d)) / (2*a) return(x1,x2)
Sign in to make a reply
卡哇伊的球球