num1=input("num1=") num2=input("num2=") avg=(eval(num1)+eval(num2))/2 print("num1+num2的平均值是{:.1f}".format (avg))