Commit 3f8d4878 by BellCodeEditor

save project

parent 05e7d622
Showing with 34 additions and 0 deletions
def a():
a_1=[]
while True:
b=input()
if b=="q":
break
try:
b=int(b)
except:
print("错了")
else:
a_1.append(b)
return a_1
a=a()
def b_1(c):
sun=0
for i in c:
sun=sun+i
return sun
c_2=h_1(a_1)
print(c_2)
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