一,题目
问题描述
Given two integers A and B, your task is to output their sum, A+B.
输入格式
The input contains of only,one line, consisting of two integers A and B. (0 ≤A,Bs1000)
输出格式
The output should contain only one number that is A+B.
样例输入
1 1
样例输出
2
二,代码
方法一
a, b, = map(int, input().split()) # 将输入的数字转化为int类型
print(a + b)
方法二
a = int(input('第一个数字'))
b = int(input('第一个数字'))
print(a + b)