From 12147c15a3cf005fb6db4a22ffdb88e36f9aea7c Mon Sep 17 00:00:00 2001 From: mjpztvof8 Date: Mon, 9 Jun 2025 17:35:46 +0800 Subject: [PATCH] Add 1.py --- 1.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 1.py diff --git a/1.py b/1.py new file mode 100644 index 0000000..efc0a3b --- /dev/null +++ b/1.py @@ -0,0 +1,9 @@ +print("\n--- 2. 条件语句 ---") +score = 85 + +if score >= 90: + print("成绩优秀!") +elif score >= 60: + print("成绩合格。") +else: + print("成绩不合格,需要加油!") \ No newline at end of file