Commit 16b02ee7 by BellCodeEditor

save project

parent c53059d6
Showing with 10 additions and 9 deletions
...@@ -5,12 +5,13 @@ def new_input(): ...@@ -5,12 +5,13 @@ def new_input():
if unit=='q': if unit=='q':
break break
else: else:
try: try:
unit= int(input("请输入:")) unit= int(unit)
except: except:
print("请输入整数") print("请输入整数")
if unit== 'q': else:
break
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