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
1 change: 1 addition & 0 deletions exercises/1901100376/1001S02E01_helloworld.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
test
1 change: 1 addition & 0 deletions exercises/1901100376/1001S02E02_hello_python.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
print('hello world')
11 changes: 11 additions & 0 deletions exercises/1901100376/1001S02E03_calculator.py
Original file line number Diff line number Diff line change
@@ -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)
14 changes: 14 additions & 0 deletions exercises/1901100376/1001S02E04_control_flow.py
Original file line number Diff line number Diff line change
@@ -0,0 +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()

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
5 changes: 5 additions & 0 deletions exercises/1901100376/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Github Account: GS2017GS gs121500190@gmail.com

Student Numeber: 1901100376