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