Discuss / Python / ** 为幂次符号

** 为幂次符号

Topic source

ZS月空

#1 Created at ... [Delete] [Delete and Lock User]

d = b 2 - 4 a c if d > 0: x1 = ( -b + math.sqrt(b 2 - 4 a c)) / (2a) x2 = ( -b - math.sqrt(b ** 2 - 4 a c)) / (2a) return x1, x2 elif d == 0: x1 = (-b) / (2*a) return x1 else: return


  • 1

Reply