Discuss / Python / 应该可以

应该可以

Topic source

关er郑祥

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

import math def A(a,b,c):#a不能为0 if bb-4ac >=0: x1=(-b+math.sqrt((bb-4ac)))/(2a) x2=(-b-math.sqrt((bb-4ac)))/(2*a) return x1,x2 else: reture a =input('qingshurua') b =input('qingshurub') c =input('qingshuruc') a=float(a) b=float(b) c=float(c) print(A(a,b,c))


  • 1

Reply