Commit 69c89d0b by BellCodeEditor

save project

parent 95fdcf6d
Showing with 14 additions and 3 deletions
...@@ -12,7 +12,19 @@ def a() : ...@@ -12,7 +12,19 @@ def a() :
else: else:
total.append(unit) total.append(unit)
finally: finally:
print("-"*30) print("=============")
return total return total
def sum(money)
he=0
for i in money:
he=he+1
return he
b=a() b=a()
print(b) pay=sum(b)
\ No newline at end of file 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