Commit e9d9a430 by BellCodeEditor

save project

parent 1754ea8a
Showing with 8 additions and 4 deletions
...@@ -13,7 +13,10 @@ def num(): ...@@ -13,7 +13,10 @@ def num():
return a return a
c=num() c=num()
print(c) print(c)
def sum(): def sum(money):
for in : count=0
for i in money:
count=count+i
return count
count1 = sum(c)
print("你一共消费了",count1,"元!扫描还是现金呢?")
\ 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