diff --git a/exercises/1901100376/1001S02E01_helloworld.txt b/exercises/1901100376/1001S02E01_helloworld.txt new file mode 100644 index 000000000..9daeafb98 --- /dev/null +++ b/exercises/1901100376/1001S02E01_helloworld.txt @@ -0,0 +1 @@ +test diff --git a/exercises/1901100376/1001S02E02_hello_python.py b/exercises/1901100376/1001S02E02_hello_python.py new file mode 100644 index 000000000..75d9766db --- /dev/null +++ b/exercises/1901100376/1001S02E02_hello_python.py @@ -0,0 +1 @@ +print('hello world') diff --git a/exercises/1901100376/1001S02E03_calculator.py b/exercises/1901100376/1001S02E03_calculator.py new file mode 100644 index 000000000..52f1554f7 --- /dev/null +++ b/exercises/1901100376/1001S02E03_calculator.py @@ -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) diff --git a/exercises/1901100376/1001S02E04_control_flow.py b/exercises/1901100376/1001S02E04_control_flow.py new file mode 100644 index 000000000..aa2197517 --- /dev/null +++ b/exercises/1901100376/1001S02E04_control_flow.py @@ -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 \ No newline at end of file diff --git a/exercises/1901100376/README.md b/exercises/1901100376/README.md new file mode 100644 index 000000000..b40e1d129 --- /dev/null +++ b/exercises/1901100376/README.md @@ -0,0 +1,5 @@ +Github Account: GS2017GS gs121500190@gmail.com + +Student Numeber: 1901100376 + +