From d974b9cd0ba1264cb41b06b01e3f8814436f0825 Mon Sep 17 00:00:00 2001 From: lhm151702 <1242806401@qq.com> Date: Tue, 19 Oct 2021 08:57:56 +0800 Subject: [PATCH] Initial commit --- README.md | 23 +++++++++++++++++++++-- map.py | 2 ++ 2 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 map.py diff --git a/README.md b/README.md index 4b61e3e..63de46d 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,22 @@ -# map +# 初学python之(A+B问题) -初学python之(A+B问题) \ No newline at end of file +**题目描述**: + +从键盘上输入两个整数,并输出这两个数的和,即你的任务是计算 a+b。 + +**输入**: + +输入空格分隔的两个整数 + +**输出**: + +对于用空格分隔的两个整数,求其和。 + +```python +# by:xiamo 2021-06-28 09:55 zunyi +print(sum(map(int, input().split()))) +``` + +**测试效果**: + +![](http://www.write-bug.com/myres/static/uploads/2021/10/19/dad2ad98fc87234d5623dd1437b47cc8.writebug) \ No newline at end of file diff --git a/map.py b/map.py new file mode 100644 index 0000000..640d4c6 --- /dev/null +++ b/map.py @@ -0,0 +1,2 @@ +#by:xiamo 2021-06-28 09:55 zunyi +print(sum(map(int, input().split()))) \ No newline at end of file