Commit 888ccf83 by BellCodeEditor

save project

parent 3dcff4a6
Showing with 9 additions and 2 deletions
...@@ -7,4 +7,11 @@ def aaa(): ...@@ -7,4 +7,11 @@ def aaa():
else: else:
total.append(unit) total.append(unit)
print(total) print(total)
aaa() try:
\ No newline at end of file s=int(input('你今年几岁了?'))
except:
print('请输入整数')
else:
if s<18:
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