Commit 69c89d0b by BellCodeEditor

save project

parent 95fdcf6d
Showing with 14 additions and 3 deletions
......@@ -12,7 +12,19 @@ def a() :
else:
total.append(unit)
finally:
print("-"*30)
print("=============")
return total
def sum(money)
he=0
for i in money:
he=he+1
return he
b=a()
print(b)
\ No newline at end of file
pay=sum(b)
print("一共花费了"+str(pay)+"元。刷卡还是现金呢")
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