m = b*b-4*a*c if m < 0: return'无解' else: x1 = (-b+math.sqrt(m))/(2*a) x2 = (-b-math.sqrt(m))/(2*a) return(x1,x2)
Sign in to make a reply
用户6225173221