Commit 68d83d7e by BellCodeEditor

auto save

parent 0c73a613
Showing with 5 additions and 6 deletions
...@@ -11,6 +11,3 @@ def new_input(): ...@@ -11,6 +11,3 @@ def new_input():
print('请输入数字') print('请输入数字')
else: else:
total.append(unit) total.append(unit)
return total
a=new_input()
print(a)
\ No newline at end of file
...@@ -13,8 +13,11 @@ def new_input(): ...@@ -13,8 +13,11 @@ def new_input():
break break
else: else:
total.append(unit) total.append(unit)
print(total) def sum(money):
new_input() count=0
for i in money:
count=count+i
return count
......
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