Commit 2b48694d by BellCodeEditor

save project

parent f622d23c
Showing with 15 additions and 11 deletions
# bjg=[]
# def gbj():
# while True:
# a=input("钱:")
# if a=="q":
# break
# else:
# bjg.append(a)
# gbj()
# print(bjg)
bjg=[]
def gbj():
while True:
a=input("钱:")
if a=="q":
break
else:
bjg.append(a)
gbj()
print(bjg)
try:
a=int(input("你几岁了:"))
a=int(input("年龄:"))
except:
print("输入整数")
else:
if a<18:
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