[Python-de] dictonary umdrehen
M.-A. Lemburg
mal at lemburg.com
Thu Feb 21 13:54:16 EST 2002
Felix Seeger wrote:
>
> Hi ich habs mal gelesen, aber ich finds nicht mehr. Wie kann ich alle werte
> in einem dict vertauschen.
> Also:
>
> key value
> --> zu
> value key
import mx.Tools
inv_d = mx.Tools.invdict(dict)
--
Marc-Andre Lemburg
CEO eGenix.com Software GmbH
______________________________________________________________________
Company & Consulting: http://www.egenix.com/
Python Software: http://www.egenix.com/files/python/
More information about the Python-de
mailing list