데이터형¶
이 장에서 설명하는 모듈은 날짜와 시간, 고정형 배열, 힙 큐, 데크, 열거형과 같은 다양한 특수 데이터형을 제공합니다.
Python also provides some built-in data types, in particular,
list, tuple, dict, frozendict,
set, and frozenset.
The str class is used to hold
Unicode strings, and the bytes and bytearray classes are used
to hold binary data.
이 장에서는 다음 모듈에 관해 설명합니다:
datetime— Basic date and time typeszoneinfo— IANA 시간대 지원calendar— 일반 달력 관련 함수collections— 컨테이너 데이터형collections.abc— 컨테이너의 추상 베이스 클래스heapq— 힙 큐 알고리즘bisect— 배열 이진 분할 알고리즘array— 효율적인 숫자 배열weakref— Weak referencestypes— 동적 형 생성과 내장형 이름copy— 얕은 복사와 깊은 복사 연산pprint— 예쁜 데이터 인쇄기reprlib— 대안repr()구현enum— 열거형 지원graphlib— 그래프와 유사한 구조에 작동하는 기능