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판)
342
2
부
객체로서의 함수
if name := unicodedata.name(char, ‘’): ❸
for word in tokenize(name):
index.setdefault(word, set()).add(char)
return index
❶
tokenize
()
는 제너레이터 함수다. 제너레이터는
17
장에서 자세히 다룬다.
❷ 지역변수
index
가
어노테이트되었다.
자료형
힌트를
붙이지
않았다면
Mypy
가
Need
type
annotation
for
‘
index
’
(
hint
:
“
index
:
dict
[<
type
>, <
type
>] = ...”
)
메시지를 출
력한다.
❸
if
조건문에 바다코끼리 연산자
:=
를 사용했다.
unicodedata
.
name
()
을 호출한 결과를
name
에 할당
하고 전체 표현식이 결과가 된다. 결과가
‘’
이면, 거짓된 값으로 판단되어
index
를 갱신하지 않는다.
12
NOTE
dict
를 레코드로 사용할 때는 키는 모두
str
형으로, 값은 키에 따라 여러 자료형을 사용하기를 권
장한다. 이와 관련한 내용은
15
.
3
절 ‘
TypedDict
’에서 설명한다.
8
.
5
.
7
추상 베이스 클래스
줄 때는 엄격하게 하고, 받을 때는 너그럽게 하라.
― 포스텔
Postel
의 법칙(‘견고성 원칙’이라고도 함)
[표
8
-
1
]은
collections.abc ...
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