Commit 16b02ee7 by BellCodeEditor

save project

parent c53059d6
Showing with 6 additions and 5 deletions
...@@ -6,11 +6,12 @@ def new_input(): ...@@ -6,11 +6,12 @@ def new_input():
break break
else: else:
try: try:
unit= int(input("请输入:")) unit= int(unit)
except: except:
print("请输入整数") print("请输入整数")
if unit== 'q':
break
else: else:
total.append(unit) total.append(unit)
print(total) finally:
\ No newline at end of file print("======================")
return total
\ 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