文章索引
I/O and Common Reading Patterns
A quick reference of the most common Python input patterns for daily scripts and competitive programming, covering reading, splitting, EOF handling, and file reading.
Frequently Used Built-in Functions
A quick reference of the most common Python built-in functions, with distinctions between built-in functions, object methods, and standard library functions.
Slicing Deep Dive
Using unified syntax to explain slicing for lists, strings, and tuples, with the most common quick-reference patterns.
Copying, References, and Mutable Objects
Clarifying assignment, shallow copy, deep copy, and why modifying a copy can affect the original object.
Sets Deep Dive
Organized around deduplication, membership testing, and set operations, covering the most common Python set use cases.
Common String Methods
A quick reference of string methods organized by purpose: searching, replacing, splitting, joining, and formatting.