Commit d0588414 by BellCodeEditor

auto save

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