From cfbf4afdbc018ba505b625f6826eb674340cb5e4 Mon Sep 17 00:00:00 2001 From: datiantian01 <54325665+datiantian01@users.noreply.github.com> Date: Fri, 13 Sep 2019 08:53:39 +0800 Subject: [PATCH 1/5] commit .txt to .md .txt .md --- exercises/1901100275/README.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 exercises/1901100275/README.md diff --git a/exercises/1901100275/README.md b/exercises/1901100275/README.md new file mode 100644 index 000000000..e69de29bb From b81e1a295f3d01fd310d4e9f5c3263174dd2300a Mon Sep 17 00:00:00 2001 From: datiantian01 <54325665+datiantian01@users.noreply.github.com> Date: Fri, 13 Sep 2019 08:54:52 +0800 Subject: [PATCH 2/5] new new .txt --- exercises/1901100275/1001S02E01_helloworld.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 exercises/1901100275/1001S02E01_helloworld.txt diff --git a/exercises/1901100275/1001S02E01_helloworld.txt b/exercises/1901100275/1001S02E01_helloworld.txt new file mode 100644 index 000000000..d816dca01 --- /dev/null +++ b/exercises/1901100275/1001S02E01_helloworld.txt @@ -0,0 +1 @@ +д \ No newline at end of file From d843198e83347bd029a74768386bdc47804a2a2c Mon Sep 17 00:00:00 2001 From: datiantian01 <54325665+datiantian01@users.noreply.github.com> Date: Sat, 14 Sep 2019 16:38:23 +0800 Subject: [PATCH 3/5] =?UTF-8?q?=E4=BD=9C=E4=B8=9A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hello world --- exercises/1901100275/1001S02E02_hello_python.py | 1 + exercises/1901100275/ni.py | 1 + 2 files changed, 2 insertions(+) create mode 100644 exercises/1901100275/1001S02E02_hello_python.py create mode 100644 exercises/1901100275/ni.py diff --git a/exercises/1901100275/1001S02E02_hello_python.py b/exercises/1901100275/1001S02E02_hello_python.py new file mode 100644 index 000000000..df1dc6821 --- /dev/null +++ b/exercises/1901100275/1001S02E02_hello_python.py @@ -0,0 +1 @@ +print('Hello World') diff --git a/exercises/1901100275/ni.py b/exercises/1901100275/ni.py new file mode 100644 index 000000000..8eb74cf27 --- /dev/null +++ b/exercises/1901100275/ni.py @@ -0,0 +1 @@ +print('Hello world') \ No newline at end of file From 265398d276c0b3fc8cc36325a2b65643ff4a581c Mon Sep 17 00:00:00 2001 From: datiantian01 <54325665+datiantian01@users.noreply.github.com> Date: Tue, 17 Sep 2019 11:32:05 +0800 Subject: [PATCH 4/5] =?UTF-8?q?=E4=BD=9C=E4=B8=9A=E4=B8=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 计算器 --- exercises/1901100275/1001S02E03_calculator.py | 18 ++++++++++++++++++ exercises/1901100275/ni.py | 1 - 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 exercises/1901100275/1001S02E03_calculator.py delete mode 100644 exercises/1901100275/ni.py diff --git a/exercises/1901100275/1001S02E03_calculator.py b/exercises/1901100275/1001S02E03_calculator.py new file mode 100644 index 000000000..7976434d2 --- /dev/null +++ b/exercises/1901100275/1001S02E03_calculator.py @@ -0,0 +1,18 @@ +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 diff --git a/exercises/1901100275/ni.py b/exercises/1901100275/ni.py deleted file mode 100644 index 8eb74cf27..000000000 --- a/exercises/1901100275/ni.py +++ /dev/null @@ -1 +0,0 @@ -print('Hello world') \ No newline at end of file From 225b7e20b1420ea52081f1dc143fb559c68bfee0 Mon Sep 17 00:00:00 2001 From: datiantian01 <54325665+datiantian01@users.noreply.github.com> Date: Mon, 23 Sep 2019 10:27:30 +0800 Subject: [PATCH 5/5] =?UTF-8?q?=E7=AC=AC=E5=9B=9B=E5=A4=A9=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 九九乘法表 --- .../1901100275/1001S02E04_control_flow.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 exercises/1901100275/1001S02E04_control_flow.py diff --git a/exercises/1901100275/1001S02E04_control_flow.py b/exercises/1901100275/1001S02E04_control_flow.py new file mode 100644 index 000000000..d93f88790 --- /dev/null +++ b/exercises/1901100275/1001S02E04_control_flow.py @@ -0,0 +1,19 @@ +i=0 +while i <9: + i+=1 + a=0 + while a <9: + a+=1 + if int(i)%2!=0: + print('%d*%d=%d'%(i,a,i*a),end=' ') + if i==a: + print('') + break + + +for i in range(1,10): + for a in range(1,i+1): + print('%d*%d=%d'%(i,a,i*a),end=' ') + if i==a: + print('') + break \ No newline at end of file