Commit 9e223bed by BellCodeEditor

auto save

parent c0706243
Showing with 12 additions and 2 deletions
...@@ -11,5 +11,15 @@ def fdgsfgrwfds(): ...@@ -11,5 +11,15 @@ def fdgsfgrwfds():
print("我踏马让你输入数字!!!!!!!!!") print("我踏马让你输入数字!!!!!!!!!")
else: else:
total.append(unit) total.append(unit)
finally:
print("-"*30) print("-"*30)
print(total)
\ No newline at end of file return total
def sum(money):
count = 0
for i in money:
count = count+i
return count
price = fdgsfgrwfds()
pay = sum(price)
print("花了"+str(pay)+"元")
\ 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