Commit 439cd62c by BellCodeEditor

save project

parent c16b70ee
Showing with 6 additions and 5 deletions
...@@ -7,13 +7,14 @@ def new_input(): ...@@ -7,13 +7,14 @@ def new_input():
if unit=="q": if unit=="q":
break break
else: else:
try try:
unit=int(unit) money = int(money)
except: except:
print("请重新输入一个数") print("请重新输入一个数")
else: else:
total.append(unit) total.append(money)
print(deowkgje) finally:
print(deowkgje)
print(total) print(total)
......
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