Commit cd942d5f by BellCodeEditor

save project

parent 278c1c0f
Showing with 2 additions and 3 deletions
...@@ -5,15 +5,14 @@ def new_input(): ...@@ -5,15 +5,14 @@ def new_input():
if unit== 'q': if unit== 'q':
break break
else: else:
total.append(unit)
try: try:
money = int(money) unit= int(unit)
except: except:
print("请输入一个数字") print("请输入一个数字")
else: else:
total.append(unit) total.append(unit)
finally: finally:
print("-"*30) print(============)
return total return total
def sum(money): def sum(money):
......
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