Commit 365f2b64 by BellCodeEditor

auto save

parent 209d7fab
Showing with 5 additions and 5 deletions
...@@ -14,13 +14,13 @@ def new_input(): ...@@ -14,13 +14,13 @@ def new_input():
total.append(unit) total.append(unit)
print(30*'*') print(30*'*')
return total return total
# a=new_input() a=new_input()
# print(a) print(a)
def sum(money): def sum(money):
k=0 k=0
for i in money: for i in money:
k+=i k+=i
print(k) print(k)
return sum return sum
# b=sum(a) b=sum(a)
# print('您一共消费了'+str(money)+'元,扫码还是现金?') print('您一共消费了'+str(money)+'元,扫码还是现金?')
\ 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