Commit 0b4af390 by BellCodeEditor

save project

parent f9969034
Showing with 8 additions and 6 deletions
def new_input():
total=[]
while True:
money=input('请输入(q退出):')
if money=='q':
break
......@@ -13,8 +12,11 @@ def new_input():
else
total.append(money)
finally:
print("-"*30)
print(total)
print("=============")
return total
a=new_input()
print(a)
\ No newline at end of file
def sum(money):
count=0
for i in money:
count=count+1
return total
\ 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