# 判断 print("请输入你的年龄") age = int(input()) if age >=18: print(f'你的年龄是:{age},成年了') else: print("小于18未成年")
# 判断
print("请输入你的年龄")
age = int(input())
if age >=18:
print(f'你的年龄是:{age},成年了')
elif age<= 5:
print("幼儿园小朋友")
else :
print("小学生")
标签:判断,int,18,age,else,条件,print,年龄 From: https://www.cnblogs.com/haha1988/p/17514873.html