Python 3 Study Notes (Volume 1)
Tags
Summary
Editor's review
Who it's for
A good fit for
- 已能用 Python 写完整项目、想弄清语法背后机制的开发者
- 需要理解 GIL、字节码、垃圾回收等运行时行为的后端工程师
- 准备阅读 CPython 源码、希望先建立整体地图的读者
- 讲授 Python 中高级课程、需要补充原理素材的讲师
Not a good fit for
- 零基础、尚未写过 Python 程序的学习者
- 只想快速上手做数据分析或网页开发的读者
- 希望按部就班做练习、需要大量例题与习题的人
Reading tips
- 先通读第1至3章建立解释器与对象模型的全景,再按兴趣跳读后续章节。
- 每读到一条结论,打开交互环境亲手复现实验,比被动接受记忆更牢。
- 针对当前使用的 Python 版本,用官方文档核对 3.6 之后有变化的行为。
- 把它当案头参考书,遇到装饰器、元类、GIL 等问题时定点查阅相关章节。
About the publisher
The Publishing House of Electronics Industry is a comprehensive publisher distinguished by its focus on electronic information and related fields. Judging from the more than 3,000 titles in its catalogue, its publishing covers programming and design, artificial intelligence, computer science, finance and economics, photography, and social sciences, attending both to cutting-edge technology and to general readers. Representative titles include Factor Investing: Methods and Practice, x86 Assembly Language: From Real Mode to Protected Mode, The RISC-V Reader, Artificial Intelligence: Speech Recognition, Understanding and Practice, Phased Array Radar Technology, Radar Target Characteristics, and 100 Go Mistakes and How to Avoid Them, most of which centre on technical methods and engineering practice. Its authors include Shi Chuan, Li Zhong, Wang Xiaobo, David Patterson, Andrew Waterman, and Yu Zihao, among others from China and abroad. Owing to limited public information, no further publishing features are elaborated here.
Contents
- Chapter 1 Overview
- Chapter 2 Types: Basic Environment (Impressions, Names, Memory, Compilation, Execution)
- Chapter 2 Built-in Types (Integers, Floats, Strings, Byte Arrays, Lists, Dictionaries, Sets)
- Chapter 3 Expressions: Lexical (Source Files, Code)
- Chapter 3 Assignment (Augmented Assignment, Sequence Unpacking, Scope)
- Chapter 3 Operators (Chained Comparison, Slicing, Logical Operations)
- Chapter 3 Control Flow (Selection, Loops)
- Chapter 3 Comprehensions
- Chapter 4 Functions (Definition, Parameters, Return Values, Scope, Closures, Calls)
- Chapter 5 Iterators (Overview, Generators, Patterns, Functional Programming)
- Chapter 6 Modules (Definition, Import: Search/Compile/Reference, Packages: Initialization/Relative Imports/Splitting)
- Chapter 7 Classes (Definition, Fields, Attributes, Methods, Inheritance, Open Classes, Operator Overloading)
- Chapter 8 Exceptions (Overview, Assertions, Context)
- Chapter 9 Metaprogramming (Decorators, Descriptors, Metaclasses, Annotations)
- Chapter 10 Advanced (Interpreter: Bytecode/GIL/Execution/Memory Allocation/Garbage Collection; Extensions: ctypes, Cython)
- Chapter 11 Testing (Unit Testing: unittest, unittest.mock, coverage; Performance Testing: timeit, profile, line profiler, memory profiler, pympler)
- Chapter 12 Tools (Debugger, Package Management)
FAQ
这本书适合零基础学 Python 吗?
上卷和下卷分别讲什么?
书中内容基于哪个 Python 版本?
为什么不给豆瓣评分?
Comments
Find this book
This site is an index: you start “Search all sources” in your browser, and the entries it lists all point to third-party sites; please judge their availability yourself.