Commit 85403091 by BellCodeEditor

auto save

parent 63bcc64b
Showing with 11 additions and 10 deletions
try : def demo1():
age=int(input("你今年几岁了")) total=[]
print("你今年",age) while True:
except: test1=input("请输入(q退出)")
print("请输入数字") if test1=="q":
else: break
if age==18: else:
print("不可以喝酒") total.append(test1)
print("程序结束") print(total)
\ No newline at end of file demo1()
\ 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