Commit a7571ece by BellCodeEditor

save project

parent 1b4d209a
Showing with 9 additions and 1 deletions
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
def a(): def a():
total = [] total = []
while True: while True:
unit= input("请输入:") unit= input("请输入(q退出):")
if unit== 'q': if unit== 'q':
break break
else: else:
...@@ -14,6 +14,14 @@ def a(): ...@@ -14,6 +14,14 @@ def a():
total.append(a) total.append(a)
print('*'*20) print('*'*20)
return total return total
def sum(money):
count = 0
for i in money:
count = count + i
return count
jiego=new_input() jiego=new_input()
print(total) print(total)
a() a()
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