input_1 = input()
a,b=input_1.split(' ')
a = int(a)
b = int(b)
print(a+b)

首先将值赋值给input_1,然后将input-1按照空格分割赋值给a,b再将a,b转化为数值型,就可以输出a+b了