Commit 427dd76d by BellCodeEditor

auto save

parent 1d534919
Showing with 14 additions and 1 deletions
def mn(): ''''def mn():
total = [] total = []
while True: while True:
unit= input("请输入:") unit= input("请输入:")
...@@ -7,3 +7,16 @@ def mn(): ...@@ -7,3 +7,16 @@ def mn():
else: else:
total.append(unit) total.append(unit)
print(total) print(total)
mn()'''
try:
age=int(input())
except:
print("要输入整数")
else:
if age<18:
print("不喝酒")
print("结束")
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