Hab da ein Beispiel gefunden, das zwar funktioniert, aber das ich nicht verstehe:
Code: Alles auswählen
coords = ([1,2],[3,4])
(p1x, p1y), (p2x, p2y) = coords # warum funktioniert das ?
# ergibt für p1x 1, p1y 2, p2x 3, p2y 4
Erhy
Code: Alles auswählen
coords = ([1,2],[3,4])
(p1x, p1y), (p2x, p2y) = coords # warum funktioniert das ?
# ergibt für p1x 1, p1y 2, p2x 3, p2y 4