diff --git a/exercises/1901100361/.py b/exercises/1901100361/.py new file mode 100644 index 000000000..f63d4764f --- /dev/null +++ b/exercises/1901100361/.py @@ -0,0 +1,3 @@ +Python 3.8.0 (tags/v3.8.0:fa919fd, Oct 14 2019, 19:21:23) [MSC v.1916 32 bit (Intel)] on win32 +Type "help", "copyright", "credits" or "license()" for more information. +>>> print("Hallo world!") diff --git a/exercises/1901100361/1001S02E01_helloworld.txt b/exercises/1901100361/1001S02E01_helloworld.txt new file mode 100644 index 000000000..2344d92ef --- /dev/null +++ b/exercises/1901100361/1001S02E01_helloworld.txt @@ -0,0 +1 @@ +你好,今天是学习的好日子 \ No newline at end of file diff --git a/exercises/1901100361/1001S02E02_hello_python.py b/exercises/1901100361/1001S02E02_hello_python.py new file mode 100644 index 000000000..63e8fe889 --- /dev/null +++ b/exercises/1901100361/1001S02E02_hello_python.py @@ -0,0 +1,5 @@ +Python 3.8.0 (tags/v3.8.0:fa919fd, Oct 14 2019, 19:21:23) [MSC v.1916 32 bit (Intel)] on win32 +Type "help", "copyright", "credits" or "license()" for more information. +>>> print("Hallo world!") +Hallo world! +>>> print("Hallo world!") diff --git a/exercises/1901100361/1001S02E03_calculator.py b/exercises/1901100361/1001S02E03_calculator.py new file mode 100644 index 000000000..30b5c9384 --- /dev/null +++ b/exercises/1901100361/1001S02E03_calculator.py @@ -0,0 +1,27 @@ +Python 3.8.0 (tags/v3.8.0:fa919fd, Oct 14 2019, 19:21:23) [MSC v.1916 32 bit (Intel)] on win32 +Type "help", "copyright", "credits" or "license()" for more information. +>>> a=5 +b=3 +#python算术运算符+-*/ + +# +两个对象相加 +c=a+b +print(c) + +# -两个对象相减 +c=a-b +print(c) +c=b-a +print(c) + +# *两个对象相乘 +c=a*b +print(c) + +# %取模(返回除法的余数) +c=a%b +print(c) + +# //取整数(返回商的整数部分) +c=a//b +print(c) \ No newline at end of file diff --git a/exercises/1901100361/1001S02E04_contral_flow.py b/exercises/1901100361/1001S02E04_contral_flow.py new file mode 100644 index 000000000..9958140e0 --- /dev/null +++ b/exercises/1901100361/1001S02E04_contral_flow.py @@ -0,0 +1,12 @@ +Python 3.8.0 (tags/v3.8.0:fa919fd, Oct 14 2019, 19:37:50) [MSC v.1916 64 bit (AMD64)] on win32 +Type "help", "copyright", "credits" or "license()" for more information. +>>> i=1 +>>> while i<=9: + j=1 + while j<=i: + mut =j*i + print("%d*%d=%d"%(j,i,mut), end=" ") + j +=1 + print("") + i+=1 + print("\r") diff --git a/exercises/1901100361/1001S02E04_control_flow.py b/exercises/1901100361/1001S02E04_control_flow.py new file mode 100644 index 000000000..df31c73c6 --- /dev/null +++ b/exercises/1901100361/1001S02E04_control_flow.py @@ -0,0 +1,54 @@ +Python 3.8.0 (tags/v3.8.0:fa919fd, Oct 14 2019, 19:37:50) [MSC v.1916 64 bit (AMD64)] on win32 +Type "help", "copyright", "credits" or "license()" for more information. +>>> for i in range(1, 10): + for j in range(1, i + 1): + print('%d*%d=%d' % (i, j, i * j), end='\t') # tab位 \t + print() # 什么都不打印,但是换行,默认 \n + + +1*1=1 +2*1=2 +2*2=4 +3*1=3 +3*2=6 +3*3=9 +4*1=4 +4*2=8 +4*3=12 +4*4=16 +5*1=5 +5*2=10 +5*3=15 +5*4=20 +5*5=25 +6*1=6 +6*2=12 +6*3=18 +6*4=24 +6*5=30 +6*6=36 +7*1=7 +7*2=14 +7*3=21 +7*4=28 +7*5=35 +7*6=42 +7*7=49 +8*1=8 +8*2=16 +8*3=24 +8*4=32 +8*5=40 +8*6=48 +8*7=56 +8*8=64 +9*1=9 +9*2=18 +9*3=27 +9*4=36 +9*5=45 +9*6=54 +9*7=63 +9*8=72 +9*9=81 +>>> diff --git a/exercises/1901100361/README.md.rtf b/exercises/1901100361/README.md.rtf new file mode 100644 index 000000000..08778d7a8 --- /dev/null +++ b/exercises/1901100361/README.md.rtf @@ -0,0 +1 @@ +{\rtf1} \ No newline at end of file diff --git a/exercises/190111088008/1001S02E01_helloworld.txt.txt b/exercises/190111088008/1001S02E01_helloworld.txt.txt new file mode 100644 index 000000000..c026ff612 --- /dev/null +++ b/exercises/190111088008/1001S02E01_helloworld.txt.txt @@ -0,0 +1 @@ +你好,我要开始做作业了 \ No newline at end of file diff --git a/exercises/190111088008/README.md.rtf b/exercises/190111088008/README.md.rtf new file mode 100644 index 000000000..08778d7a8 --- /dev/null +++ b/exercises/190111088008/README.md.rtf @@ -0,0 +1 @@ +{\rtf1} \ No newline at end of file