python求一元二次方程解
import mathdef quadratic(a, b, c): if b*b-4*a*c < 0: print('方程不存在解') elif b*b-4*a*c == 0: print('方程存在唯一解,x=', (-b+math.sqrt(b*b-4*a*c))/(2*a)) else: print('方...