python 共用两个列表的循环
lena=len(agents) tt0=tt1=tt2=tt3=tt4=tt5=tt6=tt7=tt8=tt9=tt10=tt11=tt12=tt13=0 tta0=tta1=tta2=tta3=tta4=tta5=tta6=tta7=tta8=tta9=tta10=tta11=tta12=tta13=0 ttv=1200 ttva=0 result=[] for agent,cookie,namea in zip(agents,Cookies,name): querySign(cookie, namea,agent) for ii in range(13): attva=0 ata=0 for agent,cookie,namea in zip(agents,Cookies,name): ata=ata+1 if ata in result: continue ayy=openBoxa(cookie,namea,agent) print(ata,result,ayy) if ayy==-1: result.append(ata) if ttva<ayy: ttva=ayy if len(result)==lena: break print(ttva+5) time.sleep(ttva)