Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions exercises/1901100361/.py
Original file line number Diff line number Diff line change
@@ -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!")
1 change: 1 addition & 0 deletions exercises/1901100361/1001S02E01_helloworld.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
你好,今天是学习的好日子
5 changes: 5 additions & 0 deletions exercises/1901100361/1001S02E02_hello_python.py
Original file line number Diff line number Diff line change
@@ -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!")
27 changes: 27 additions & 0 deletions exercises/1901100361/1001S02E03_calculator.py
Original file line number Diff line number Diff line change
@@ -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)
12 changes: 12 additions & 0 deletions exercises/1901100361/1001S02E04_contral_flow.py
Original file line number Diff line number Diff line change
@@ -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")
54 changes: 54 additions & 0 deletions exercises/1901100361/1001S02E04_control_flow.py
Original file line number Diff line number Diff line change
@@ -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
>>>
1 change: 1 addition & 0 deletions exercises/1901100361/README.md.rtf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{\rtf1}
1 change: 1 addition & 0 deletions exercises/190111088008/1001S02E01_helloworld.txt.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
你好,我要开始做作业了
1 change: 1 addition & 0 deletions exercises/190111088008/README.md.rtf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{\rtf1}