Commit 4c846bf1 by BellCodeEditor

save project

parent 05e7d622
Showing with 23 additions and 0 deletions
def SB():
SB_1=[]
while True:
SB_2=input("你是傻逼:")
if SB_2=="q":
break
try:
SB_2=int(SB_2)
except:
print("你傻啊,错了!")
else:
SB_1.append(SB_2)
return SB_1
SB_1=SB()
def SB_3(SB_4):
sum=0
for i in SB_4:
sum=sum+i
return sum
SB_5=SB_3(SB_1)
print(SB_5)
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