Commit 13f58465 by BellCodeEditor

save project

parent 90cc948c
Showing with 12 additions and 4 deletions
...@@ -5,6 +5,15 @@ def new_input(): ...@@ -5,6 +5,15 @@ def new_input():
if unit== 'q': if unit== 'q':
break break
else: else:
total.append(unit) try:
print(total) money=int(money)
new_input() except:
\ No newline at end of file priet("请重新输入")
total.append(money)
finally:
print("-"*30)
return total
resul=new_input()
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