Commit 32d50124 by BellCodeEditor

auto save

parent 5e5db4ba
Showing with 47 additions and 23 deletions
def skr():
total = []
while True:
try:
unit= int(input("请输入:"))
except:
print('数字')
else:
if unit == -1:
break
else:
total.append(unit)
return total
uk = skr()
def xj(na):
k=0
for i in na:
k+=i
return k
s=xj(uk)
print(s)
\ 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