算法入门题里A+B问题,python实现

一个一个输入不行吗,为什么要用split()和map()函数

img

a=int(input())
b=int(input())
print(a+b)

Python要这样写才行,输入一个数据时要先给他定义类型