Commit d2b79974 by BellCodeEditor

auto save

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