Commit 944937bb by BellCodeEditor

save project

parent 9df100f9
Showing with 17 additions and 2 deletions
try:
age=int(input("今"))
except:
print('数')
else:
if age <18:
print('不')
print('结束')
\ No newline at end of file
......@@ -2,8 +2,14 @@ def a_1():
total = []
while True:
unit= input("请输入:")
if unit== 'q':
break
try:
unit1=int(unit)
except:
print('输入错误,请重新输入一个数字')
else:
total.append(unit)
print(total)
\ No newline at end of file
print(total)
print("-"*30)
\ 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