Commit 67884628 by BellCodeEditor

save project

parent 10b4cc64
Showing with 3 additions and 7 deletions
...@@ -12,16 +12,11 @@ def new_ghgdh(): ...@@ -12,16 +12,11 @@ def new_ghgdh():
else: else:
total.append(unit) total.append(unit)
return total return total
lbbnn=new_ghgdh()
print(lbbnn)
def sum(unit): def sum(unit):
comm=0 comm=0
for i in unit: for i in unit:
comm=comm+1 comm=comm+1
return comm return comm
lwxzbc = new_ghgdh()
pay=sum(lwxzbc)
LWXZBC = new_ghgdh()
pay=sum(LWXZBC)
print(("一共消费"+str(pay)+"元,扫码还是现金") 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