Commit 10b4cc64 by BellCodeEditor

save project

parent ea205547
Showing with 13 additions and 2 deletions
......@@ -12,5 +12,16 @@ def new_ghgdh():
else:
total.append(unit)
return total
lbbnn=new_ghgdh()
print(lbbnn)
\ No newline at end of file
print(lbbnn)
def sum(unit):
comm=0
for i in unit:
comm=comm+1
return comm
LWXZBC = new_ghgdh()
pay=sum(LWXZBC)
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