Python 집합 메서드
fruits 집합 복사:
fruits = {"apple", "banana", "cherry"} x = fruits.copy() print(x)
실행 예제
copy() 메서드는 집합을 복사합니다.
set.copy()
매개변수 없음.