Itertools Python3

Smith smith at smith.com
Tue Aug 30 06:45:54 EDT 2016


Il 30/08/2016 12:28, Chris Angelico ha scritto:
> Do you get an exception, possibly from the product() call? When you
> ask for help, copy and paste the entire traceback and error message;
> it's extremely useful information.
>
> I'm pretty sure I know what the problem is here, but I want you to
> post the traceback, so that you learn how debugging of Python code
> works
  python3 toolgen.py
Inserisci un valore:  dog
<_io.TextIOWrapper name='file.txt' mode='w' encoding='UTF-8'> ddd
<_io.TextIOWrapper name='file.txt' mode='w' encoding='UTF-8'> ddo
<_io.TextIOWrapper name='file.txt' mode='w' encoding='UTF-8'> ddg
<_io.TextIOWrapper name='file.txt' mode='w' encoding='UTF-8'> dod
<_io.TextIOWrapper name='file.txt' mode='w' encoding='UTF-8'> doo
<_io.TextIOWrapper name='file.txt' mode='w' encoding='UTF-8'> dog
<_io.TextIOWrapper name='file.txt' mode='w' encoding='UTF-8'> dgd
<_io.TextIOWrapper name='file.txt' mode='w' encoding='UTF-8'> dgo
<_io.TextIOWrapper name='file.txt' mode='w' encoding='UTF-8'> dgg
<_io.TextIOWrapper name='file.txt' mode='w' encoding='UTF-8'> odd
<_io.TextIOWrapper name='file.txt' mode='w' encoding='UTF-8'> odo
<_io.TextIOWrapper name='file.txt' mode='w' encoding='UTF-8'> odg
<_io.TextIOWrapper name='file.txt' mode='w' encoding='UTF-8'> ood
<_io.TextIOWrapper name='file.txt' mode='w' encoding='UTF-8'> ooo
<_io.TextIOWrapper name='file.txt' mode='w' encoding='UTF-8'> oog
<_io.TextIOWrapper name='file.txt' mode='w' encoding='UTF-8'> ogd
<_io.TextIOWrapper name='file.txt' mode='w' encoding='UTF-8'> ogo
<_io.TextIOWrapper name='file.txt' mode='w' encoding='UTF-8'> ogg
<_io.TextIOWrapper name='file.txt' mode='w' encoding='UTF-8'> gdd
<_io.TextIOWrapper name='file.txt' mode='w' encoding='UTF-8'> gdo
<_io.TextIOWrapper name='file.txt' mode='w' encoding='UTF-8'> gdg
<_io.TextIOWrapper name='file.txt' mode='w' encoding='UTF-8'> god
<_io.TextIOWrapper name='file.txt' mode='w' encoding='UTF-8'> goo
<_io.TextIOWrapper name='file.txt' mode='w' encoding='UTF-8'> gog
<_io.TextIOWrapper name='file.txt' mode='w' encoding='UTF-8'> ggd
<_io.TextIOWrapper name='file.txt' mode='w' encoding='UTF-8'> ggo
<_io.TextIOWrapper name='file.txt' mode='w' encoding='UTF-8'> ggg



More information about the Python-list mailing list