def f(): a=input('first number:') b=input('second number:') print(a+' + '+ b +' = ',int(a)+int(b))f()first number:4second number:54 + 5 = 9
a,b=[float(items) for items in input("请输入两个数,以逗号分隔:\n").split(',')]print(a+b)