Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def leArquivo(entrada):
- a = open(entrada,'r');
- aux = a.read();
- separado = separaLetras(aux);
- separado = separado.split(',');
- tam = len(separado);
- k = input ("Informe o tamanho das substrings: ")
- if(k>tam):
- print "O tamanho das substrings e maior que o tamanho da lista."
- else:
- return Kmer(separado,k);
- def separaLetras(texto):
- if not texto:
- return texto;
- else:
- aux = separaLetras(texto[1:]);
- if not aux:
- return texto[0];
- else:
- return texto[0] + ',' + aux;
Advertisement
Add Comment
Please, Sign In to add comment