Commit b989cc2f by BellCodeEditor

save project

parent dc70412a
Showing with 22 additions and 0 deletions
def count_money():
total = []
while True:
try:
unit= int(input("请输入:"))
except:
print(" ooo ")
else:
if unit== 0:
break
else:
total.append(unit)
return total
a=count_money()
def c(money):
t = 0
for i in money:
t=t+i
return t
az=c(a)
print(az)
\ 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