Commit 98911775 by BellCodeEditor

save project

parent 9bc33904
Showing with 10 additions and 2 deletions
...@@ -14,5 +14,13 @@ def func(): ...@@ -14,5 +14,13 @@ def func():
total.append(unit) total.append(unit)
return total return total
def q(sb):
zz=0
for i in sb:
zz=zz+i
print(zz)
a=func() a=func()
print(a) pay=q(a)
\ 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