python_for_asl/Exercise/exercise-3.1.py
2025-08-06 02:04:35 +08:00

13 lines
307 B
Python

# 请根据用户输入的年龄输出在学校的阶段:
# 0-5 输出 学龄前
# 6-11 输出 小学
# 12-14 输出 初中
# 15-17 输出 高中
# 18-21 输出 大学
# 22-59 输出 打工人
# 60+ 输出 退休了
print('请输入你的年龄:')
age = int(input())
if age < 6:
print('学龄前')