12.07.2015 Views

METODOLOGIA DE MINERAÇÃO DE DADOS PARA ANÁLISE DO ...

METODOLOGIA DE MINERAÇÃO DE DADOS PARA ANÁLISE DO ...

METODOLOGIA DE MINERAÇÃO DE DADOS PARA ANÁLISE DO ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

print ' 'else:print 'Arquivo ' + arqin2 + ' nao encontrado...'j = 0p = [' ', 0, 0]while j < len(todas_linhas2):line2 = todas_linhas2[j]rec2 = string.splitfields(todas_linhas2[j], ' ')j = j + 1lidos = lidos + 1laux[0] = line2tipo = int(rec2[0])for i in range(1,assoc[tipo]):line2 = todas_linhas2[j]j = j + 1lidos = lidos + 1laux[i] = line2#print 'laux=', lauxif lidos % 500 == 0:print lidos, time.strftime("%a, %d %b %Y %H:%M:%S", time.localtime())#print rec2[1], p[0]if rec2[1] == p[0]: #volta se for o mesmo IDpointer = p[1]else:pointer = p[2]#print 'pointer:', pointerp = compara_lista(pointer, assoc[tipo], laux)#print 'p=', ptotal = total + 1laux = [[]]*4saida.close()print '--------------------------------'print 'Lidos = ', lidosprint 'Regras analisadas/gravadas = ', totalprint ''print 'Fim...'print time.strftime("%a, %d %b %Y %H:%M:%S", time.localtime())201

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!