Commit bbe032b1 by BellCodeEditor

auto save

parent 4e23ddf8
Showing with 5 additions and 6 deletions
...@@ -14,12 +14,11 @@ def new_input(): ...@@ -14,12 +14,11 @@ def new_input():
print('*'*30) print('*'*30)
print(total) print(total)
return total return total
#a=new_input()
#print(a)
def sum(money): def sum(money):
count=0 count=0
for i in money: for i in money:
count+=i count=count+i
return count return count
#b=sum(a) a=new_input()
#print('您一共花费'+str(b)+'块钱') b=sum(a)
\ No newline at end of file print(b)
\ 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