Commit ce9baa70 by BellCodeEditor

save project

parent 3c702cd2
Showing with 6 additions and 5 deletions
...@@ -16,9 +16,10 @@ def new_input(): ...@@ -16,9 +16,10 @@ def new_input():
return total return total
def sum(money): def sum(money):
for i in range: ww = 0
ww = ww+i for i in money:
ww = ww + i
return ww return ww
ss = new_input() ss = new_input()
aa = sum(ss) pay = sum(ss)
print("您一共消费了"+str(aa)+"元!是现金还是刷码,微信还是支付宝呢?") print("您一共消费了"+str(pay)+"元!是现金还是刷码,微信还是支付宝呢?如果是邢顺浩请滚!")
\ No newline at end of file \ 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