Blog
In-depth articles on AI agents, LLM engineering, servers, Python and software development.
This chapter delves into advanced Python features, including: list, dictionary, and set comprehensions, which are concise and efficient for quickly creating data structures; generators with lazy evalu
This chapter introduces Python's module and package system. A module is a file containing code, which can be categorized into types such as built-in and standard. It can be imported through various me
This chapter introduces Python exception handling, covering concepts such as exceptions (runtime errors in programs, divided into syntax errors and exceptions), hierarchy (based on BaseException), and
This chapter introduces Python object-oriented programming, covering concepts such as classes and objects. A class is defined using the `class` keyword and can be instantiated. Attributes are divided
This chapter introduces Python file operations, including: file opening and closing using the `open()` function with different modes, emphasizing the automatic resource management via the `with` state
This chapter provides an in - depth explanation of Python functions, covering function definition and invocation, such as defining functions with `def` and using docstrings for description. For parame
This chapter introduces 5 built-in data structures in Python. Strings can be defined using multi - quotes and have a rich set of operation methods. Lists are ordered and mutable, supporting operations
This chapter mainly introduces Python control flow, including conditional statements and loop statements. Conditional statements include single, double, and multi-branch structures, which can be combi
This chapter introduces Python basic syntax, including: variable-related aspects such as naming rules (identifier composition, PEP 8 specifications, etc.), assignment references, and scopes; data type
This chapter mainly introduces Python environment setup and basic usage. First, it explains the Python installation and configuration methods for different operating systems (Windows, macOS, Linux); t