求助 40分 python3
查看原帖
求助 40分 python3
1510473
qwertyzsx楼主2024/10/19 23:30

a,b,c=map(float,input().split())

x1=round((-1b+(bb-4ac)**0.5)/(2*a),5)

x2=round((-1b-(bb-4ac)**0.5)/(2*a),5)

if x1 is None and x2 is None:

	print('No answer!')

elif x1==x2:

	print(f'x1=x2={x1}')

else:

	print(f'x1={x1};x2={x2}')
2024/10/19 23:30
加载中...