Commit e9d9a430 by BellCodeEditor

save project

parent 1754ea8a
Showing with 8 additions and 4 deletions
......@@ -13,7 +13,10 @@ def num():
return a
c=num()
print(c)
def sum():
for in :
def sum(money):
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