Commit 8422a24f by BellCodeEditor

auto save

parent e23b5385
Showing with 0 additions and 11 deletions
...@@ -21,17 +21,6 @@ def sum(money): ...@@ -21,17 +21,6 @@ def sum(money):
for i in money: for i in money:
count = count + i count = count + i
return count return count
def new_input():
total = []
while True:
unit= input('请输入(q退出):')
if unit== 'q':
break
else:
total.append(unit)
print(total)
new_input()
price = new_input() price = new_input()
pay = sum(price) pay = sum(price)
......
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