2016-12-01 2 views

Antwort

1

list erstellt eine neue Liste, aber keine tiefe Kopie, d. H. Klonen alle Elemente darin.

Was Sie brauchen, ist ein clone (auch bekannt als deep copy). Finden Sie diese Antwort für gute Alternativen (und Benchmarks) in Python: How to clone or copy a list?.

Verwandte Themen