From 146b3d51a526ded9d098b96d7cee942d29288522 Mon Sep 17 00:00:00 2001 From: xiaooyu <8507081@qq.com> Date: Wed, 28 Aug 2019 22:02:55 +0800 Subject: [PATCH 1/8] 1901100191 d1 work --- exercises/1901100191/1001S02E01_helloworld.txt | 8 ++++++++ exercises/1901100191/README.md | 8 ++++++++ 2 files changed, 16 insertions(+) create mode 100644 exercises/1901100191/1001S02E01_helloworld.txt create mode 100644 exercises/1901100191/README.md diff --git a/exercises/1901100191/1001S02E01_helloworld.txt b/exercises/1901100191/1001S02E01_helloworld.txt new file mode 100644 index 000000000..db96d0277 --- /dev/null +++ b/exercises/1901100191/1001S02E01_helloworld.txt @@ -0,0 +1,8 @@ +{\rtf1\ansi\ansicpg936\cocoartf1671\cocoasubrtf500 +{\fonttbl\f0\fswiss\fcharset0 Helvetica;} +{\colortbl;\red255\green255\blue255;} +{\*\expandedcolortbl;;} +\paperw11900\paperh16840\margl1440\margr1440\vieww10800\viewh8400\viewkind0 +\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural\partightenfactor0 + +\f0\fs24 \cf0 Hello world} \ No newline at end of file diff --git a/exercises/1901100191/README.md b/exercises/1901100191/README.md new file mode 100644 index 000000000..2072259db --- /dev/null +++ b/exercises/1901100191/README.md @@ -0,0 +1,8 @@ +{\rtf1\ansi\ansicpg936\cocoartf1671\cocoasubrtf500 +{\fonttbl\f0\fswiss\fcharset0 Helvetica;} +{\colortbl;\red255\green255\blue255;} +{\*\expandedcolortbl;;} +\paperw11900\paperh16840\margl1440\margr1440\vieww10800\viewh8400\viewkind0 +\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural\partightenfactor0 + +\f0\fs24 \cf0 # learn markdown} \ No newline at end of file From e2b2580f99e525836d3fd7bd0c7203aecd98f46c Mon Sep 17 00:00:00 2001 From: xiaooyu <8507081@qq.com> Date: Wed, 28 Aug 2019 22:07:49 +0800 Subject: [PATCH 2/8] 1901100191 d1 work --- exercises/1901100191/1001S02E01_helloworld.txt | 2 +- exercises/1901100191/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/exercises/1901100191/1001S02E01_helloworld.txt b/exercises/1901100191/1001S02E01_helloworld.txt index db96d0277..7aa1a1c25 100644 --- a/exercises/1901100191/1001S02E01_helloworld.txt +++ b/exercises/1901100191/1001S02E01_helloworld.txt @@ -5,4 +5,4 @@ \paperw11900\paperh16840\margl1440\margr1440\vieww10800\viewh8400\viewkind0 \pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural\partightenfactor0 -\f0\fs24 \cf0 Hello world} \ No newline at end of file +\f0\fs24 \cf0 Hello world 1} \ No newline at end of file diff --git a/exercises/1901100191/README.md b/exercises/1901100191/README.md index 2072259db..6e2f7bf38 100644 --- a/exercises/1901100191/README.md +++ b/exercises/1901100191/README.md @@ -5,4 +5,4 @@ \paperw11900\paperh16840\margl1440\margr1440\vieww10800\viewh8400\viewkind0 \pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural\partightenfactor0 -\f0\fs24 \cf0 # learn markdown} \ No newline at end of file +\f0\fs24 \cf0 # learn markdown1} \ No newline at end of file From 566b456df81902952e8cec0bfdf21f568f27210f Mon Sep 17 00:00:00 2001 From: xiaooyu <8507081@qq.com> Date: Wed, 28 Aug 2019 22:13:51 +0800 Subject: [PATCH 3/8] 1901100191 D1 work --- exercises/1901100191/1001S02E01_helloworld.txt | 2 +- exercises/1901100191/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/exercises/1901100191/1001S02E01_helloworld.txt b/exercises/1901100191/1001S02E01_helloworld.txt index 7aa1a1c25..ed85e1541 100644 --- a/exercises/1901100191/1001S02E01_helloworld.txt +++ b/exercises/1901100191/1001S02E01_helloworld.txt @@ -5,4 +5,4 @@ \paperw11900\paperh16840\margl1440\margr1440\vieww10800\viewh8400\viewkind0 \pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural\partightenfactor0 -\f0\fs24 \cf0 Hello world 1} \ No newline at end of file +\f0\fs24 \cf0 Hello world } \ No newline at end of file diff --git a/exercises/1901100191/README.md b/exercises/1901100191/README.md index 6e2f7bf38..2072259db 100644 --- a/exercises/1901100191/README.md +++ b/exercises/1901100191/README.md @@ -5,4 +5,4 @@ \paperw11900\paperh16840\margl1440\margr1440\vieww10800\viewh8400\viewkind0 \pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural\partightenfactor0 -\f0\fs24 \cf0 # learn markdown1} \ No newline at end of file +\f0\fs24 \cf0 # learn markdown} \ No newline at end of file From a9a3a7fcb620bbf24f9674ae069fbb0394ab808d Mon Sep 17 00:00:00 2001 From: xiaooyu <8507081@qq.com> Date: Thu, 29 Aug 2019 18:37:51 +0800 Subject: [PATCH 4/8] 1901100191 d1 work --- exercises/1901100191/1001S02E01_helloworld.txt | 2 +- exercises/1901100191/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/exercises/1901100191/1001S02E01_helloworld.txt b/exercises/1901100191/1001S02E01_helloworld.txt index ed85e1541..100a8e0bb 100644 --- a/exercises/1901100191/1001S02E01_helloworld.txt +++ b/exercises/1901100191/1001S02E01_helloworld.txt @@ -5,4 +5,4 @@ \paperw11900\paperh16840\margl1440\margr1440\vieww10800\viewh8400\viewkind0 \pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural\partightenfactor0 -\f0\fs24 \cf0 Hello world } \ No newline at end of file +\f0\fs24 \cf0 Hello world } \ No newline at end of file diff --git a/exercises/1901100191/README.md b/exercises/1901100191/README.md index 2072259db..9445d76b5 100644 --- a/exercises/1901100191/README.md +++ b/exercises/1901100191/README.md @@ -5,4 +5,4 @@ \paperw11900\paperh16840\margl1440\margr1440\vieww10800\viewh8400\viewkind0 \pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural\partightenfactor0 -\f0\fs24 \cf0 # learn markdown} \ No newline at end of file +\f0\fs24 \cf0 # learn markdown } \ No newline at end of file From 30c5fe6f8f6a109efe85044c29738f561dd8fb93 Mon Sep 17 00:00:00 2001 From: xiaooyu <8507081@qq.com> Date: Sun, 1 Sep 2019 23:11:19 +0800 Subject: [PATCH 5/8] D2 work --- exercises/1901100191/1001S02E02_hello_python.py | 1 + 1 file changed, 1 insertion(+) create mode 100644 exercises/1901100191/1001S02E02_hello_python.py diff --git a/exercises/1901100191/1001S02E02_hello_python.py b/exercises/1901100191/1001S02E02_hello_python.py new file mode 100644 index 000000000..7ddfc8f85 --- /dev/null +++ b/exercises/1901100191/1001S02E02_hello_python.py @@ -0,0 +1 @@ +print('hello world!') \ No newline at end of file From 65a17cc300ec1b71374fd42d5bb70baa55b5d887 Mon Sep 17 00:00:00 2001 From: xiaooyu <8507081@qq.com> Date: Mon, 11 Nov 2019 19:59:05 +0800 Subject: [PATCH 6/8] day3_1901100191 --- exercises/1901100191/1001S02E03_calculator.py | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 exercises/1901100191/1001S02E03_calculator.py diff --git a/exercises/1901100191/1001S02E03_calculator.py b/exercises/1901100191/1001S02E03_calculator.py new file mode 100644 index 000000000..be8589f77 --- /dev/null +++ b/exercises/1901100191/1001S02E03_calculator.py @@ -0,0 +1,21 @@ +operator = input('请输入运算符(+、-、*、/):') +first_number = input('请输入第一个数字:') +second_number = input('请输入第二个数字:') + +a = int(first_number) +b = int(second_number) + +print('operator:', operator, type(operator)) +print('first_number:', first_number, type(first_number)) +print('second_number:', second_number, type(second_number)) + +if operator == '+': + print(a, '+', b, '=', a + b) +elif operator == '-': + print(a, '-', b, '=', a - b) +elif operator == '*': + print(a, '*', b, '=', a * b) +elif operator == '/': + print(a, '/', b, '=', a / b) +else: + print('无效运算符') \ No newline at end of file From 2e8d83bb83f6cadf4007ee008cb38407b80f9271 Mon Sep 17 00:00:00 2001 From: xiaooyu <8507081@qq.com> Date: Mon, 11 Nov 2019 20:31:23 +0800 Subject: [PATCH 7/8] =?UTF-8?q?day3=5F13=E7=BE=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- exercises/1901100191/1001S02E03_calculator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/1901100191/1001S02E03_calculator.py b/exercises/1901100191/1001S02E03_calculator.py index be8589f77..466688c42 100644 --- a/exercises/1901100191/1001S02E03_calculator.py +++ b/exercises/1901100191/1001S02E03_calculator.py @@ -18,4 +18,4 @@ elif operator == '/': print(a, '/', b, '=', a / b) else: - print('无效运算符') \ No newline at end of file + print('无效运算符') \ No newline at end of file From e37baf339ad2f2c8a40acf7ad6f94ddd4a0572e8 Mon Sep 17 00:00:00 2001 From: xiaooyu <8507081@qq.com> Date: Thu, 14 Nov 2019 12:38:41 +0800 Subject: [PATCH 8/8] day4_1901100191 --- .../1901100191/1001S02E04_control_flow.py | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 exercises/1901100191/1001S02E04_control_flow.py diff --git a/exercises/1901100191/1001S02E04_control_flow.py b/exercises/1901100191/1001S02E04_control_flow.py new file mode 100644 index 000000000..89c90c041 --- /dev/null +++ b/exercises/1901100191/1001S02E04_control_flow.py @@ -0,0 +1,21 @@ +print('九九乘法运算') +for i in range(1,10): + for j in range(1,10): + print(j,'×',i,'=',i*j, end="\t") + print("") + + +print('九九乘法运算') +for a in range(1,10,2): + for b in range(1,10,2): + print(b,'×',a,'=',a*b, end="\t") + print("") + +print('九九乘法运算') +for c in range(1,10): + for d in range(1,c+1): + while c % 2 !=0: + print(d,'×',c,'=',c*d, end="\t") + if c == d: + print("") + break \ No newline at end of file