Commit 04019db7 by BellCodeEditor

save project

parent cf224426
Showing with 13 additions and 9 deletions
try: while True:
age = int(input("你今年几岁了")) unit= input("请输入(q退出)")
except: if unit == "q":
print("要输入整数") break
else: else:
if age < 18: try:
print("不可以喝酒") unit= int(unit)
print("程序结束") except:
\ No newline at end of file total.append(unit)
return total
result = new_input()
print(total)
\ 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