Commit 764ac32f by BellCodeEditor

auto save

parent 20a6bf8b
Showing with 14 additions and 0 deletions
while True:
try:
age=int(input("请输入你的年龄:"))
except:
print("年龄是数字,请输入数字")
else:
if age < 18:
print("不能喝酒")
break
print("继续输入")
print("继续后续的程序")
\ 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