save dictionary to a file without brackets.

giuseppe.amatulli at gmail.com giuseppe.amatulli at gmail.com
Thu Aug 9 16:11:19 EDT 2012


Hi,
I have a dict() unique
like this 
{(4, 5): 1, (5, 4): 1, (4, 4): 2, (2, 3): 1, (4, 3): 2}
and i want to print to a file without the brackets comas and semicolon in order to obtain something like this?
4 5 1
5 4 1
4 4 2
2 3 1
4 3 2
Any ideas?
Thanks in advance 
Giuseppe



More information about the Python-list mailing list