Discuss / Python / 打卡 缩进很重要 调了半天

打卡 缩进很重要 调了半天

Topic source

    m = b*b-4*a*c

    if m<0:

        print('无解')

    else:

        x1 = (b*(-1)+math.sqrt(m))/(2*a)

        x2 = (b*(-1)-math.sqrt(m))/(2*a)

        return x1,x2


  • 1

Reply