Commit 7dbaacdd by BellCodeEditor

save project

parent d0b17f05
Showing with 2 additions and 0 deletions
...@@ -2,6 +2,8 @@ def new_input(): ...@@ -2,6 +2,8 @@ def new_input():
total = [] total = []
while True: while True:
unit = input("请输入:") unit = input("请输入:")
if unit == 'q':
break
try: try:
unit = int(unit) unit = int(unit)
except: except:
......
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