Commit 4e41f4b6 by BellCodeEditor

save project

parent 1a29d353
Showing with 8 additions and 4 deletions
...@@ -14,7 +14,11 @@ def new_input(): ...@@ -14,7 +14,11 @@ def new_input():
finally: finally:
print("_"*30) print("_"*30)
return total return total
def sun(money):
a=0
for i in money:
return count
price=new_input()
pay=sum(price)
print('您一共消费了'+str(pay)+'元!请问您是支付宝,微信还是现金呢?')
result = new_input() \ No newline at end of file
print(result)
\ 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