Commit 83a63e46 by BellCodeEditor

save project

parent 3e8ef1f1
Showing with 13 additions and 2 deletions
def hello(name):
\ No newline at end of file
...@@ -14,5 +14,14 @@ def total1(): ...@@ -14,5 +14,14 @@ def total1():
total.append(a) total.append(a)
print("-"*30) print("-"*30)
return total return total
r=total1() def sum(money):
print(r) he=0
for i in money:
he=he+i
return money
p=total1()
r=sum(p)
print("您一共消费"+str(r)+"元,请问您是现金还是支付宝还是现金呢?")
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