Commit 4611d670 by BellCodeEditor

save project

parent 9e1b67d3
Showing with 10 additions and 2 deletions
......@@ -6,4 +6,12 @@ def new_input():
break
else:
total.append(unit)
print(total)
\ No newline at end of file
print(total)
try:
age = int(input("你今年几岁?"))
except:
print("要输入数字啊!")
else:
if age < 18:
ptint("不可以喝酒哟")
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