Category: Python

노트북과 파일형 데이터베이스 저장소

Python Tutorial / Store Data with sqlite3 and Parameterized Queries

Use sqlite3 transactions and value parameters, enforce database constraints and verify that rejected writes and repeated imports preserve the intended records.

두 컴퓨터 사이에서 오가는 요청·응답 블록

Python Tutorial / Understand HTTP APIs, JSON Responses and Request Failures

Run a local HTTP/JSON client with time and size limits, validate records and distinguish network failures from malformed or unsuitable data.

두 폴더 사이의 복사 화살표와 확인 표시

Python Tutorial / Search and Copy Files with a Dry Run and Verification

Preview a batch copy, apply it explicitly, refuse destination collisions and verify file bytes while understanding partial results and scope limits.

종류별로 집계한 항목을 연결하는 흐름

Python Tutorial / Aggregate and Combine Iteration with collections and itertools

Use Counter, defaultdict, chain and groupby while accounting for missing-key insertion, adjacent groups and iterator consumption.

구슬 패턴의 특정 부분을 찾는 돋보기

Python Tutorial / Search and Extract Text with Regular Expressions

Choose regex searches or full-string validation, extract named groups and separate string shape from calendar and business validity.

여러 시계와 달력·지구본으로 표현한 시간대

Python Tutorial / Work with Dates, Times and Time Zones

Use date, datetime, timedelta and zoneinfo, preserve instants during conversion and choose clear time-zone and calendar-date storage rules.

한 항목씩 흘려보내는 구슬 처리 통로

Python Tutorial / Process Data Lazily with Iterators and Generators

Distinguish iterable objects, iterators and generators, inspect partial consumption and evaluate lazy calculation, memory use and resource lifetime accurately.

이름 없는 필드별 도형을 정리한 데이터 상자

Python Tutorial / Create Data-Centered Classes with dataclass

Use dataclass fields and default factories, validate initial data and distinguish generated equality, frozen fields and serialization from application policy.

상속 계층과 여러 블록의 합성을 비교한 구조

Python Tutorial / Reuse Code with Inheritance and Composition

Compare inheritance with composition, preserve behavioral contracts and build a ledger that delegates to a replaceable fee policy.

검증 관문을 통과하는 데이터 블록

Python Tutorial / Control Object Updates with Methods and Properties

Use property setters to validate initial and later assignments, preserve state after rejection and avoid recursive setters and hidden expensive operations.