Commit ab766d19 by BellCodeEditor

save project

parent 38557047
Showing with 9 additions and 2 deletions
......@@ -14,4 +14,11 @@ def diancai():
print("-"*30)
return total
print(diancai())
\ No newline at end of file
def suanqian(money):
count=0
for i in money:
count+=i
return count
pay=suanqian(diancai())
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