Discuss / Python / 交作业

交作业

Topic source

deta = bb-4ac if deta < 0: return('无实根') elif a==0: x_1 = x_2 = -b/c return x_1,x_2 else: x_1 = (-b+math.sqrt(deta))/(2a) x_2 = (-b-math.sqrt(deta))/(2*a) return x_1,x_2


  • 1

Reply