Skip to Content
For Enterprise
For Government
For Higher Ed
For Individuals
For Marketing
For Enterprise
For Government
For Higher Ed
For Individuals
For Marketing
Explore Skills
Cloud Computing
Microsoft Azure
Amazon Web Services (AWS)
Google Cloud
Cloud Migration
Cloud Deployment
Cloud Platforms
Data Engineering
Data Warehouse
SQL
Apache Spark
Microsoft SQL Server
MySQL
Kafka
Data Lake
Streaming & Messaging
NoSQL Databases
Relational Databases
Data Science
Pandas
R
MATLAB
SAS
D3
Power BI
Tableau
Statistics
Exploratory Data Analysis
Data Visualization
AI & ML
Generative AI
Machine Learning
Artificial Intelligence (AI)
Deep Learning
Reinforcement Learning
Natural Language Processing
TensorFlow
Scikit-Learn
Hyperparameter Tuning
MLOps
Programming Languages
Java
JavaScript
Spring
Python
Go
C#
C++
C
Swift
Rust
Functional Programming
Software Architecture
Object-Oriented
Distributed Systems
Domain-Driven Design
Architectural Patterns
IT/Ops
Kubernetes
Docker
GitHub
Terraform
Continuous Delivery
Continuous Integration
Database Administration
Computer Networking
Operating Systems
IT Certifications
Security
Network Security
Application Security
Incident Response
Zero Trust Model
Disaster Recovery
Penetration Testing / Ethical Hacking
Governance
Malware
Security Architecture
Security Engineering
Security Certifications
Design
Web Design
Graphic Design
Interaction Design
Film & Video
User Experience (UX)
Design Process
Design Tools
Business
Agile
Project Management
Product Management
Marketing
Human Resources
Finance
Team Management
Business Strategy
Digital Transformation
Organizational Leadership
Soft Skills
Professional Communication
Emotional Intelligence
Presentation Skills
Innovation
Critical Thinking
Public Speaking
Collaboration
Personal Productivity
Confidence / Motivation
Features
All features
Verifiable skills
AI Academy
Courses
Certifications
Interactive learning
Live events
Superstreams
Answers
Insights reporting
Radar Blog
Buy Courses
Plans
Sign In
Try Now
O'Reilly Platform
book
전문가를 위한 파이썬(2판)
by
루시아누 하말류
,
강권학
November 2024
Beginner to intermediate
1064 pages
25h 21m
Korean
Hanbit Media, Inc.
Content preview from
전문가를 위한 파이썬(2판)
58
1
부
데이터 구조체
NOTE
파이썬
3
.
7
이후
dict
형은 공식적으로 ‘순서가 있는 자료형’이 되었지만, 키를 삽입한 순서만 유지
할 뿐이고
dict
에 들어 있는 키를 재정렬할 수는 없다.
Set
추상 데이터 클래스의 모든 특별 메서드는 중위 연산자를 구현한다. 예를 들어
a & b
는
a
집합과
b
집합의 교집합을 구하며, 특별 메서드
__and__(
)
가 구현한다.
2
장과
3
장에서는 표준 라이브러리 시퀀스와 매핑,
집합을 자세히 설명한다.
이제 파이썬 데이터 모델에 정의된 두 부류의 주요 특별 메서드를 알아보자.
1
.
4
특별 메서드 개요
파이썬 언어 참조 문서의 ‘데이터 모델
Data
Model
’(
https://fpy.li/dtmodel
)
장에는
80
개가 넘
는 특별 메서드가 있다. 그중 절반 이상이 산술
arithmetic
, 비트
bitwise
, 비교
comparison
연산자이다. 다
음 표들을 참조해 전체적으로 살펴보자.
중위 연산자나
abs(
)
같은 핵심 산술 함수를 구현하는 데 필요한 메서드를 제외한 특별 메서
드명은 [표
1
-
1
]과 같다. 대부분의 메서드는 이 책을 진행하면서 설명하는데, 특히 최근에 추
가된
__anext__(
)
비동기 특별 메서드
(
파이썬
3
.
5
에 추가
)
와
__init_subclass__(
)
클래
스 커스텀 훅
customization ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial
You might also like
전문가를 위한 리액트
테자스 쿠마르
데이터로 전문가처럼 말하기
칼 올친
개발자를 위한 머신러닝&딥러닝
로런스 모로니
고성능 파이썬(2판)
오현석, 미샤 고렐릭, 이안 오스발트
Publisher Resources
ISBN: 9791169211772