3개의 질문
abcde copy() 메서드는 주어진 리스트의 복사본을 반환합니다. 매개변수 매개변수는 없습니다. 리턴값 주어진 리스트의 복사본을 반환합니다. 예제1 fruits = ["apple", "banana", "cherry"] x = fruits.copy() print(x) 결과 ['apple...
dictionary.copy() copy() 메서드는 지정된 사전의 복사본을 반환합니다. 매개변수 매개변수는 없습니다. 예제1 car = { "brand": "Ford", "model": "Mustang", "year": 1964 } x = car.copy() pr...
set.copy() copy() 메서드는 집합을 복사합니다. 매개변수 매개변수는 없습니다. 예제1 fruits = {"apple", "banana", "cherry"} x = fruits.copy() print(x) 결과 {'banana', 'cherry', 'ap...
© 2022 pinfo. All rights reserved.