Commit 2b48694d by BellCodeEditor

save project

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