From 070f0ff4b077f86d7a5ade3e43bfb2a6993ad8a0 Mon Sep 17 00:00:00 2001 From: lyq760208 <52565659+lyq760208@users.noreply.github.com> Date: Wed, 7 Aug 2019 15:39:02 +0800 Subject: [PATCH 1/6] day1 work day1 work --- exercises/1901100192/1001S02E01_helloworld.txt | 1 + exercises/1901100192/README.md | 1 + 2 files changed, 2 insertions(+) create mode 100644 exercises/1901100192/1001S02E01_helloworld.txt create mode 100644 exercises/1901100192/README.md diff --git a/exercises/1901100192/1001S02E01_helloworld.txt b/exercises/1901100192/1001S02E01_helloworld.txt new file mode 100644 index 000000000..08db928f1 --- /dev/null +++ b/exercises/1901100192/1001S02E01_helloworld.txt @@ -0,0 +1 @@ +ijˣ \ No newline at end of file diff --git a/exercises/1901100192/README.md b/exercises/1901100192/README.md new file mode 100644 index 000000000..93a078d1c --- /dev/null +++ b/exercises/1901100192/README.md @@ -0,0 +1 @@ +# hello-world \ No newline at end of file From e6b09a4f37856699cdf505a1d0a80ca8bdb87b31 Mon Sep 17 00:00:00 2001 From: lyq760208 <52565659+lyq760208@users.noreply.github.com> Date: Mon, 19 Aug 2019 17:20:45 +0800 Subject: [PATCH 2/6] =?UTF-8?q?=E8=87=AA=E5=AD=A6=E8=AE=AD=E7=BB=83?= =?UTF-8?q?=E8=90=A5=E5=AD=A6=E4=B9=A013=E7=BE=A4+1901100192+day2=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A=EF=BC=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 自学训练营学习13群+1901100192+day2作业! --- exercises/1901100192/1001S02E02_hello_python.py | 1 + 1 file changed, 1 insertion(+) create mode 100644 exercises/1901100192/1001S02E02_hello_python.py diff --git a/exercises/1901100192/1001S02E02_hello_python.py b/exercises/1901100192/1001S02E02_hello_python.py new file mode 100644 index 000000000..9822661dc --- /dev/null +++ b/exercises/1901100192/1001S02E02_hello_python.py @@ -0,0 +1 @@ +print ('hello,world') From 86bf6c88cc5a814ab871a6e8cdd1c2779c0e965b Mon Sep 17 00:00:00 2001 From: lyq760208 <52565659+lyq760208@users.noreply.github.com> Date: Mon, 19 Aug 2019 17:22:13 +0800 Subject: [PATCH 3/6] Update README.md --- exercises/1901100192/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/exercises/1901100192/README.md b/exercises/1901100192/README.md index 93a078d1c..4359e688a 100644 --- a/exercises/1901100192/README.md +++ b/exercises/1901100192/README.md @@ -1 +1,2 @@ -# hello-world \ No newline at end of file +# hello-world +#very good From 36ceaf25f161b40fb467bdf5f5cc414509ef4e22 Mon Sep 17 00:00:00 2001 From: lyq760208 <52565659+lyq760208@users.noreply.github.com> Date: Thu, 29 Aug 2019 10:08:57 +0800 Subject: [PATCH 4/6] =?UTF-8?q?=E8=87=AA=E5=AD=A6=E8=AE=AD=E7=BB=83?= =?UTF-8?q?=E8=90=A5=E5=AD=A6=E4=B9=A013=E7=BE=A4+1901100192+day2=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A=EF=BC=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 自学训练营学习13群+1901100192+day2作业! --- exercises/1901100192/1001S02E02_hello_python.py | 1 + 1 file changed, 1 insertion(+) diff --git a/exercises/1901100192/1001S02E02_hello_python.py b/exercises/1901100192/1001S02E02_hello_python.py index 9822661dc..086a55acd 100644 --- a/exercises/1901100192/1001S02E02_hello_python.py +++ b/exercises/1901100192/1001S02E02_hello_python.py @@ -1 +1,2 @@ print ('hello,world') +print ('nice to meet you') From 6a0cfa05d2ffd5f6d09d7b3a737d15fd79954a36 Mon Sep 17 00:00:00 2001 From: lyq760208 <52565659+lyq760208@users.noreply.github.com> Date: Mon, 18 Nov 2019 09:20:26 +0800 Subject: [PATCH 5/6] =?UTF-8?q?day3+=E8=87=AA=E5=AD=A6=E7=BE=A413?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 计算器 --- exercises/1901100192/1001S02E03_calculator.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 exercises/1901100192/1001S02E03_calculator.py diff --git a/exercises/1901100192/1001S02E03_calculator.py b/exercises/1901100192/1001S02E03_calculator.py new file mode 100644 index 000000000..d98fc4ae6 --- /dev/null +++ b/exercises/1901100192/1001S02E03_calculator.py @@ -0,0 +1,19 @@ +operator = input('请输入运算符号(+, -, *, /) : ') +first_number = input('请输入第一个数字: ') +second_number = input('请输入第二个数字 : ') + +a = int(first_number) +b = int(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('Null operator') + + From 89113fa5cadc44bd9ad93c983e5bdf1f8314e769 Mon Sep 17 00:00:00 2001 From: lyq760208 <52565659+lyq760208@users.noreply.github.com> Date: Fri, 22 Nov 2019 17:40:04 +0800 Subject: [PATCH 6/6] =?UTF-8?q?=E8=87=AA=E5=AD=A6=E8=AE=AD=E7=BB=83?= =?UTF-8?q?=E8=90=A5=E5=AD=A6=E4=B9=A013=E7=BE=A4+1901100192+day4=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A=EF=BC=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 对print %d \t,等还是不太理解!先交作业吧 --- .../1901100192/1001S02E04_control_flow.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 exercises/1901100192/1001S02E04_control_flow.py diff --git a/exercises/1901100192/1001S02E04_control_flow.py b/exercises/1901100192/1001S02E04_control_flow.py new file mode 100644 index 000000000..15e41d6b3 --- /dev/null +++ b/exercises/1901100192/1001S02E04_control_flow.py @@ -0,0 +1,19 @@ + + +for n in range(1, 10): + for m in range(1, n+1): + print("%d*%d=%2d" % (n,m,n*m), end =" ") + print() + + n = 1 +while n <= 9: + m = 1 + while m <= n: + if n % 2 > 0: + print("%d*%d=%d\t" % (n, m, n*m),end='') + m += 1 + if n % 2 != 0: + print() + n += 1 + +