如果有帮助的话,请点击右上角【采纳】按钮,支持一下!!
A = eval(input("请输入数A:")) B = eval(input("\n请输入数B:")) print("\n这两个数的算术平均为:{:.3f}".format((A+B)/2)) print("这两个数的算术平均为:{:.3f}".format(math.sqrt((A*B)))) print("这两个数的算术平均为:{:.3f}".format(1/((1/A +1/B)/2)))