From 92c8b69d9b6bc1e52603c059290322d77fe70f7c Mon Sep 17 00:00:00 2001 From: alan09025 Date: Wed, 15 May 2024 13:37:55 +0800 Subject: [PATCH 1/6] [add] test.py --- test.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 test.py diff --git a/test.py b/test.py new file mode 100644 index 0000000..e69de29 From 21d7eb5ad09c820ee3bc2b083d2092ffe84d5039 Mon Sep 17 00:00:00 2001 From: alan09025 Date: Wed, 15 May 2024 13:43:01 +0800 Subject: [PATCH 2/6] [add] main.py --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 4012c7d..ea51a5c 100644 --- a/main.py +++ b/main.py @@ -1,5 +1,5 @@ def add(a: int, b: int) -> int: - return a - b + return a + b def multiply(a: int, b: int) -> int: pass From 9c9c22727596a0d3dfb8dbf95ae29aa437eae13a Mon Sep 17 00:00:00 2001 From: alan09025 Date: Wed, 15 May 2024 15:57:57 +0800 Subject: [PATCH 3/6] [add] multiply --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 4012c7d..aea45c1 100644 --- a/main.py +++ b/main.py @@ -1,8 +1,8 @@ def add(a: int, b: int) -> int: - return a - b + return a + b def multiply(a: int, b: int) -> int: - pass + return a * b if __name__ == "__main__": print("Please input the calculation you want: ") From 29a1f1551dc3d5773977d8b1db201ba084e3bb75 Mon Sep 17 00:00:00 2001 From: alan09025 Date: Wed, 15 May 2024 16:24:44 +0800 Subject: [PATCH 4/6] [add] ignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..096746c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/node_modules/ \ No newline at end of file From 2348b288d6d056353c7a9a0f69afbeb1407f6413 Mon Sep 17 00:00:00 2001 From: alan09025 <128113570+alan09025@users.noreply.github.com> Date: Wed, 15 May 2024 16:31:20 +0800 Subject: [PATCH 5/6] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8a9ed3c..7e5344d 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ # github_ws -This repo is a teaching example for the Github Workshop. +This repo is a teaching example for the Github Workshop.
The material is created by NTU DAC 5th directors of Acdaemic Affairs From e871e222b2c936c453b4fdd19f5c46ee67d366da Mon Sep 17 00:00:00 2001 From: alan09025 Date: Wed, 15 May 2024 16:35:20 +0800 Subject: [PATCH 6/6] [add] hello --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index aea45c1..bd68f90 100644 --- a/main.py +++ b/main.py @@ -14,4 +14,5 @@ def multiply(a: int, b: int) -> int: if mode == "add": print(f"The sum of {a} and {b} is: {add(a, b)}") elif mode == "multiply": - print(f"The multiplication of {a} and {b} is: {multiply(a, b)} ") \ No newline at end of file + print(f"The multiplication of {a} and {b} is: {multiply(a, b)} ") + print("Hello")