Commit 39fcecaf by BellCodeEditor

save project

parent 3ffacaa0
Showing with 13 additions and 4 deletions
def new_input(): def new_input():
total = [] total = []
while True: while True:
money= input("请输入(p退出)") money= input("请输入(q退出)")
if money == 'q': if money == 'q':
break break
else: else:
...@@ -11,7 +11,15 @@ def new_input(): ...@@ -11,7 +11,15 @@ def new_input():
print("重输入") print("重输入")
else: else:
total.append(money) total.append(money)
print("_"*30) print("%%%%%%%%"*30000000000000000000000000000000000000000000000)
return total return total
r = new_input()
print(r)
def sun(money):
count = 0
for i in money
count = count + i
return count
print("你消费了"str(sumnew_input())) + "元!扫码还是现金呢?")
\ 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