데이터형¶
The modules described in this chapter provide a variety of specialized data types such as dates and times, fixed-type arrays, heap queues, double-ended queues, and enumerations.
Python also provides some built-in data types, in particular,
dict, list, set and frozenset, and
tuple. The str class is used to hold
Unicode strings, and the bytes and bytearray classes are used
to hold binary data.
이 장에서는 다음 모듈에 관해 설명합니다:
datetime— 기본 날짜와 시간 형calendar— General calendar-related functionscollections— Container datatypescollections.abc— 컨테이너의 추상 베이스 클래스heapq— Heap queue algorithmbisect— 배열 이진 분할 알고리즘array— 효율적인 숫자 배열weakref— Weak referencestypes— 동적 형 생성과 내장형 이름copy— 얕은 복사와 깊은 복사 연산pprint— 예쁜 데이터 인쇄기reprlib— 대안repr()구현enum— Support for enumerations- Module Contents
- Creating an Enum
- Programmatic access to enumeration members and their attributes
- Duplicating enum members and values
- Ensuring unique enumeration values
- Using automatic values
- Iteration
- Comparisons
- Allowed members and attributes of enumerations
- Restricted Enum subclassing
- Pickling
- Functional API
- Derived Enumerations
- Interesting examples
- How are Enums different?
