def findv(ol,cond_func,cond_func_args=[]):
rslt = []<EOL>for i in range(ol.__len__()):<EOL><INDENT>cond = cond_func(ol[i],*cond_func_args)<EOL>if(cond):<EOL><INDENT>rslt.append((i,ol[i]))<EOL><DEDENT>else:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>return(rslt)<EOL>
#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)