Commit db7dbbb0 by BellCodeEditor

save project

parent 5cb55fdd
Showing with 11 additions and 9 deletions
try: def a():
age=int(input("你今年几岁了")) total=[]
except: while True:
print("要输入整数啊") b=input("想吃啥:")
else: if b=="q":
if age<18: break
print("不可以喝酒哦") else:
print("程序结束") total.append(b)
\ No newline at end of file print(total)
a()
\ 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