Commit d0588414 by BellCodeEditor

auto save

parent 5795c1f1
Showing with 3 additions and 3 deletions
......@@ -6,15 +6,15 @@ def new_input():
if unit== 'q':
break
else:
total.append(unit)
total.append(int(unit))
except:
print("请输入数字或'q'")
return total
def sum(money):
count = 0
for i in money
count += input
for i in money:
count += i
return count
list1 = new_input()
......
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