Python

[dictionary] Python - dictionary.copy() 메서드 - Dictionary 복사 (= copy메서드 = 딕셔너리카피메서드)

890

목차

  1. dictionary.copy() 예제 - dictionary 복사
  2. dictionary.copy() 정의
  3. dictionary.copy() 구문

 

dictionary.copy() 예제 - dictionary 복사

 

hz ={

  "site": "홈짱닷컴",

  "host": "Homzzang.com",

  "open": 2012

}

x = hz.copy()

print(x)


결과값: 

{'site': '홈짱닷컴', 'host': 'Homzzang.com', 'open': 2012}

 

dictionary.copy() 정의

 

Dictionary 복사.

 

 

dictionary.copy() 구문

 

dictionary.copy()

 


[매개변수]

 

없음.

 



분류 제목
function Python - sorted() 함수 ★★ - 객체의 정렬된 List 생성. (= sorted함수 = 소티드…
function Python - @staticmethod() 함수 △ - 메서드를 static 메서드로 변환.
function Python - str() 함수 ★ - 문자열 데이터타입으로 만들기. (= str함수 = 스트르함수) ※ 스…
function Python - sum() 함수 ★★ - 반복 가능 객체의 요소 합산(=더하기) (= sum함수 = 섬함수)…
function Python - super() 함수 ★ - 부모/형제 클래스의 메서드/속성에 접근 허용 (= super함수 …
function Python - tuple() 함수 ★ - Tuple 객체 생성. (= tuple함수)
function Python - type() 함수 ★ -객체의 데이터타입 반환. (= type함수 = 타입함수)
function Python - vars() 함수 - 객체의 __dict__ 속성 반환. (= vars함수 = 바르스 함수 …
function Python - zip() 함수 ★ - 객체의 같은 색인번호 요소끼리 결합해 새 객체 생성. (= zip함수…
string Python - String Method (문자열 메서드) 종류
string Python - capitalize() 메서드 - 문자열의 첫글자만 대문자로 변환. (= capitalize…
string Python - casefold() 메서드 - 모든 문자열을 소문자로 변환. (= casefold메서드 = …
string Python - center() 메서드 - 지정 문자로 문자열 가운데 정렬. (= 센터)
string Python - count() 메서드 ★★ - 지정 문자열 포함 횟수. (= 카운트)
string Python - encode() 메서드 ★★ - 지정 인코딩 방식으로 문자열 인코딩. (= encode메서드…
11/32
목록
 홈  PC버전 로그인 일본어
그누앞단언어
그누뒷단언어
그외코딩언어
그누보드
제작의뢰
Q&A
커뮤니티 2
웹유틸
회원센터
홈짱닷컴 PC버전 로그인