Discuss / Python / 作业

作业

Topic source

if a==0: if b==0: return '常函数无解'
else: x=-c/b return x elif bb-4ac<0: return '无解' else: x1=(-b+math.sqrt(bb-4ac))/(2a) x2=(-b-math.sqrt(bb-4ac))/(2*a) return (x1,x2)


  • 1

Reply