Commit 24d861e7 by BellCodeEditor

save project

parent 3cae2ddf
Showing with 10 additions and 2 deletions
...@@ -14,5 +14,13 @@ def func(): ...@@ -14,5 +14,13 @@ def func():
print("-"*30) print("-"*30)
return total return total
def sum(money):
count = 0
for i in money:
count = count + 1
return count
result = func() result = func()
print(result) pay = sum(price)
\ No newline at end of file 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