elist/elist.py
def findv(ol,cond_func,cond_func_args=[]):
    '''
        #mapv     i不作为map_func参数,共享相同的f,共享相同的o
        #         NOT take index as a param for map_func
        #         share common other_args
        #         share common cond_func
        #         common_func(value,*common_args)

    '''
    rslt = []
    for i in range(ol.__len__()):
        cond = cond_func(ol[i],*cond_func_args)
        if(cond):
            rslt.append((i,ol[i]))
        else:
            pass
    return(rslt)
def findv(ol,cond_func,cond_func_args=[]):
    '''
        #mapv     i不作为map_func参数,共享相同的f,共享相同的o
        #         NOT take index as a param for map_func
        #         share common other_args
        #         share common cond_func
        #         common_func(value,*common_args)

    '''
    rslt = []
    for i in range(ol.__len__()):
        cond = cond_func(ol[i],*cond_func_args)
        if(cond):
            rslt.append((i,ol[i]))
        else:
            pass
    return(rslt)
#mapv     i不作为map_func参数,共享相同的f,共享相同的o
        #         NOT take index as a param for map_func
        #         share common other_args
        #         share common cond_func
        #         common_func(value,*common_args)