Commit 741481ad by BellCodeEditor

save project

parent e643b3ed
Showing with 26 additions and 16 deletions
def ii():
total = []
while True:
unit= input("请输入:")
if unit== 'q':
break
else:
try:
unit=int(unit)
except:
print('sb')
else:
total.append(unit)
print('-'*30)
return total
result=new
def ii(unit):
try:
unit=int(unit)
except:
print('sb')
else:
print('-'*30)
return unit
def sum(money):
count=0
for i in money:
count+=i
return count
total = []
while True:
unit= input("请输入:")
if unit== 'q':
break
else:
total.append(ii(unit))
print(sum(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