1 parent 7ab9062 commit f960317Copy full SHA for f960317
1 file changed
first learn/if.py
@@ -1,7 +1,7 @@
1
age = int(input("输入你的年龄:"))
2
-if age >= 18:
3
- print("成年了")
4
-elif age >= 30:
+if age >= 30:
5
print("太老了")
+elif age >= 18:
+ print("成年了")
6
else:
7
print("你还太年轻了")
0 commit comments