2010/5/17 Andreina Mejia <andreiname...@gmail.com>: [...] > def correct(word): > candidates = known([word]) or known(edits1(word)) or known_edits2(word) > or [word] > key=NWORDS.get > print candidates > print key
prueba con: print ', '.join(candidates) > if __name__=='__main__': > word= raw_input('Palabra en español: ') > correct(word) > > Y esta es la salida: > > Palabra en español: día > ['d\xc3\xada'] > <built-in method get of collections.defaultdict object at 0xb773f89c> candidates es un list, y te muestra su representación con su contenido >>> print 'd\xc3\xada' día ~Rolando _______________________________________________ Python-es mailing list Python-es@python.org http://mail.python.org/mailman/listinfo/python-es FAQ: http://python-es-faq.wikidot.com/