Commit e6ba7f65 by BellCodeEditor

auto save

parent 1c757b47
Showing with 2 additions and 12 deletions
...@@ -11,15 +11,5 @@ def fdgsfgrwfds(): ...@@ -11,15 +11,5 @@ def fdgsfgrwfds():
print("我踏马让你输入数字!!!!!!!!!") print("我踏马让你输入数字!!!!!!!!!")
else: else:
total.append(unit) total.append(unit)
finally:
print("-"*30) print("-"*30)
print(total)
return total \ No newline at end of file
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