Python Sammlung copy() Methode
Beispiel
Kopieren Sie die Sammlung fruits:
fruits = {"apple", "banana", "cherry"} x = fruits.copy() print(x)
Definition und Verwendung
Die copy() Methode kopiert eine Sammlung.
Syntax
set.copy()
Wert des Parameters
Keine Parameter.