为什么输出的时候用
a,b = map(float,input().split())
c = 1/(1/a+1/b)
print('{:.2f}').format(c))
输出的结果控制不到两位小数,但是用下面这个形式就可以控制到两位小数位了?
print("%.2f"%c)