Commit 25a9599a by BellCodeEditor

save project

parent 9300e5f8
Showing with 5 additions and 4 deletions
...@@ -7,14 +7,15 @@ def new_input(): ...@@ -7,14 +7,15 @@ def new_input():
else: else:
try: try:
money = int(money) money = int(money)
except: else:
print("请重新输入一个数") print("请重新输入一个数")
finally: finally:
print("-"*30) print("=====================")
return total return total
new_input() new_input()
print(result) pay = sum(print)
\ No newline at end of file print("消费" + str(pay) + "ghjkl;")
\ 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