Commit f163aee0 by BellCodeEditor

auto save

parent 59df505a
Showing with 13 additions and 0 deletions
# 创建让用户输入年龄,如果大于18岁,可以喝酒。小于18岁 ,
#不能喝酒 输入了拼音 控制台输出,请输入数字
try:
a=int(input("输入年龄"))
except:
print("请输入数字")
else:
if a<18:
print("不可以喝酒")
else:
print("可以喝酒")
print("hahaha")
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment