From cb20fa44785193a297d3f61649847cd586e45cdd Mon Sep 17 00:00:00 2001 From: GS2017GS Date: Thu, 12 Sep 2019 22:21:15 +0800 Subject: [PATCH 1/5] 1901100376 Day1 Homework --- exercises/1901100376/1001S02E01_helloworld.txt | 1 + exercises/1901100376/README.md | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 exercises/1901100376/1001S02E01_helloworld.txt create mode 100644 exercises/1901100376/README.md diff --git a/exercises/1901100376/1001S02E01_helloworld.txt b/exercises/1901100376/1001S02E01_helloworld.txt new file mode 100644 index 000000000..9daeafb98 --- /dev/null +++ b/exercises/1901100376/1001S02E01_helloworld.txt @@ -0,0 +1 @@ +test diff --git a/exercises/1901100376/README.md b/exercises/1901100376/README.md new file mode 100644 index 000000000..b40e1d129 --- /dev/null +++ b/exercises/1901100376/README.md @@ -0,0 +1,5 @@ +Github Account: GS2017GS gs121500190@gmail.com + +Student Numeber: 1901100376 + + From 830e5df485ed55b3a8a1b71330e7a9cf1b843d28 Mon Sep 17 00:00:00 2001 From: GS2017GS Date: Sat, 14 Sep 2019 16:12:17 +0800 Subject: [PATCH 2/5] Create 1001S02E02_hello_python.py --- exercises/1901100376/1001S02E02_hello_python.py | 1 + 1 file changed, 1 insertion(+) create mode 100644 exercises/1901100376/1001S02E02_hello_python.py diff --git a/exercises/1901100376/1001S02E02_hello_python.py b/exercises/1901100376/1001S02E02_hello_python.py new file mode 100644 index 000000000..75d9766db --- /dev/null +++ b/exercises/1901100376/1001S02E02_hello_python.py @@ -0,0 +1 @@ +print('hello world') From 88dfc198c6348ff17a51bed0fe2a338056694afa Mon Sep 17 00:00:00 2001 From: GS2017GS Date: Tue, 8 Oct 2019 12:13:23 +0800 Subject: [PATCH 3/5] Create 1001S02E03_calculator.py --- exercises/1901100376/1001S02E03_calculator.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 exercises/1901100376/1001S02E03_calculator.py diff --git a/exercises/1901100376/1001S02E03_calculator.py b/exercises/1901100376/1001S02E03_calculator.py new file mode 100644 index 000000000..52f1554f7 --- /dev/null +++ b/exercises/1901100376/1001S02E03_calculator.py @@ -0,0 +1,11 @@ +calculate = input('选择您要进行的运算:1.加法2.减法3.乘法4.除法 \n请输入数字进行选择: 1 / 2 / 3 /4 \n') +num1 = float(input('请输入第一个运算数字')) +num2 = float(input('请输入第二个运算数字')) +if calculate == '1': + print(num1+num2) +elif calculate == '2': + print(num1-num2) +elif calculate == '3': + print(num1*num2) +elif calculate == '4': + print(num1/num2) From 1f985ba1fbb9ce0e17044a163e13417685e00770 Mon Sep 17 00:00:00 2001 From: GS2017GS Date: Tue, 26 Nov 2019 23:52:42 +0800 Subject: [PATCH 4/5] Create 1001S02E04_control_flow.py --- exercises/1901100376/1001S02E04_control_flow.py | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 exercises/1901100376/1001S02E04_control_flow.py diff --git a/exercises/1901100376/1001S02E04_control_flow.py b/exercises/1901100376/1001S02E04_control_flow.py new file mode 100644 index 000000000..5a12129ec --- /dev/null +++ b/exercises/1901100376/1001S02E04_control_flow.py @@ -0,0 +1,5 @@ +for a in range(1,10): + for b in range(1,a+1): + print('%s*%s=%s'%(a,b,a*b),end=' ') + print() + \ No newline at end of file From 69bb1f7c8ed5edcbd323d01d80a41d9402da8f68 Mon Sep 17 00:00:00 2001 From: GS2017GS Date: Wed, 27 Nov 2019 22:38:44 +0800 Subject: [PATCH 5/5] Update 1001S02E04_control_flow.py --- exercises/1901100376/1001S02E04_control_flow.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/exercises/1901100376/1001S02E04_control_flow.py b/exercises/1901100376/1001S02E04_control_flow.py index 5a12129ec..aa2197517 100644 --- a/exercises/1901100376/1001S02E04_control_flow.py +++ b/exercises/1901100376/1001S02E04_control_flow.py @@ -1,5 +1,14 @@ +print('九九乘法表一:') for a in range(1,10): for b in range(1,a+1): print('%s*%s=%s'%(a,b,a*b),end=' ') print() - \ No newline at end of file + +print( '九九乘法表二:') +a=1 +while a<10: + if a % 2 !=0: + for b in range(1,a+1): + print('%s*%s=%s'%(a,b,a*b),end=' ') + print() + a += 2 \ No newline at end of file