Commit 58358c62 by BellCodeEditor

save project

parent 1299f024
Showing with 9 additions and 3 deletions
...@@ -13,6 +13,12 @@ def func(): ...@@ -13,6 +13,12 @@ def func():
total.append(unit) total.append(unit)
return total return total
def s(d):
l=0
for i in d:
l=l+i
print(l)
a=func() a=func()
print(a) pay=s(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