Wie fügt man einem Wörterbuchschlüssel in Python mehrere Werte hinzu?

Möchte ich hinzufügen, dass mehrere Werte zu einem bestimmten Schlüssel. Wie kann ich das tun?

a = {}
a["abc"] = 1
a["abc"] = 2

InformationsquelleAutor der Frage PythonEnthusiast | 2013-12-14

Schreibe einen Kommentar