Commit e8d42b99 by BellCodeEditor

save project

parent dc70412a
Showing with 21 additions and 0 deletions
def a():
b=[]
while True:
c=input("请输入:")
if c=="q":
break
else:
try:
c=int(c)
except:
print("bug")
else:
b.append(c)
return b
d=a()
def e(s):
z=0
for i in s:
z=z+i
print(z)
e(d)
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