Category: Python

코드와 의존 파일을 하나의 앱 상자와 여러 파일 폴더로 묶는 패키징 일러스트

Python / Compiling Code and Creating EXE Files

Check the difference between compilation and execution with a runnable example. Use PyInstaller on Windows to build folder and single-file executables, include data files, and diagnose failures.

소수 일부를 분리하고 온전한 정육면체를 남기는 정수 변환 일러스트

Python / int() / Convert Values to Integers

Convert strings and numbers with Python int(), choose a numeric base, and understand truncation and conversion errors. A runnable example restricts order quantities to ASCII digits and values from 1 to 99.

코드의 추상적인 줄 옆에 설명 카드와 문서 책을 배치한 일러스트

Python / Syntax / Comments

Learn to write # comments in Python, including beside items in a multi-line expression. Runnable examples distinguish triple-quoted strings and docstrings from comments and show why an otherwise empty block needs pass.

객체 주변의 속성 이름을 확대경과 색인으로 탐색하는 개념 일러스트

Python / dir() / Discover an Object’s Attribute Names

Explore names on strings, lists, modules, and custom objects with dir(). Learn how to use the discovered attributes, how vars() differs, and why local namespaces and custom __dir__() methods affect the result.

연속적인 수량을 유한한 정밀도로 표현하는 유리 측정 용기와 조각들의 일러스트

Python / float() / Convert Values to Floating-Point Numbers

Explore accepted input formats, conversion errors, and floating-point approximation. Complete examples cover NaN, infinity, overflow, and a function that accepts only finite numbers.

여러 자료형의 값을 문자열 표현으로 바꾸는 과정을 나타낸 일러스트

Python / str() / Convert an Object to a String

Learn how str() converts values, how numeric formatting differs from conversion, and when bytes require decoding. Examples also distinguish repr() and JSON, handle None, and explain common errors.

소스 파일을 묶어 설치 패키지로 만드는 흐름

Python Tutorial / Package a Python Program and Verify Installation

Create a src-layout package and pyproject.toml, build a wheel, install it cleanly and verify imports and module execution outside the source checkout.

여러 작업이 대기와 처리를 나누어 진행하는 통로

Python Tutorial / Choose Threads, Processes or asyncio

Compare thread, process and asyncio execution models, understand entry-point and event-loop rules and choose concurrency based on workload and measured costs.

함수 처리 장치를 감싸는 포장과 입출력

Python Tutorial / Understand Decorators and Context Managers

Wrap functions with preserved metadata and results, implement cleanup with contextmanager and verify behavior when a block or wrapped call fails.

컴퓨터에서 보안 연결을 거쳐 데이터베이스로 이어지는 흐름

Python Tutorial / Connect to MariaDB and Manage Transactions

Prepare a least-privilege local MariaDB account, bind values through PyMySQL and manage commit, rollback, credentials and connection cleanup.