Commit d2b79974 by BellCodeEditor

auto save

parent 66039c46
Showing with 10 additions and 6 deletions
......@@ -2,12 +2,15 @@ def er():
try:
total = []
while True:
unit= int(input("请输入:"))
if unit== 'q':
break
else:
total.append(unit)
except:
print('要输入整数')
print(total)
else:
unit= int(input("请输入:"))
if unit== 'q':
break
else:
total.append(unit)
print(total)
er()
\ 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