Commit c3ea7ba1 by BellCodeEditor

save project

parent 912e6759
Showing with 4 additions and 2 deletions
...@@ -14,13 +14,14 @@ def new_input(): ...@@ -14,13 +14,14 @@ def new_input():
finally: finally:
print("_"*30) print("_"*30)
return total return total
count=0 count=0
def sun(money) def sum(money)
count=0 count=0
for i in money: for i in money:
conut=count+i conut=count+i
return count return count
price=new_input() price=new_input()
sun(price) sum(price)
pay=sun(price) pay=sun(price)
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