Python 语言参考手册
*******************

This reference manual describes the syntax and core semantics of the
language. It is terse, but attempts to be exact and complete.

Elsewhere, the built-in object types and functions are described in
Python built-ins reference. Standard library modules are described in
The Python standard library.

For an informal introduction to the language, see Python 教程. For C
or C++ programmers, two additional manuals exist: 扩展和嵌入 Python 解
释器 describes the high-level picture of how to write a Python
extension module, and the Python/C API 参考手册 describes the
interfaces available to C/C++ programmers in detail.

* 1. 概述

  * 1.1. 其他实现

  * 1.2. 标注

* 2. 词法分析

  * 2.1. 行结构

  * 2.2. 其他标记

  * 2.3. 名称（标识符和关键字）

  * 2.4. 字面量

  * 2.5. 字符串与字节串字面量

  * 2.6. 数值字面量

  * 2.7. 运算符与定界符

* 3. 数据模型

  * 3.1. 对象、值与类型

  * 3.2. 标准类型层级结构

  * 3.3. 特殊方法名称

  * 3.4. 协程

* 4. 执行模型

  * 4.1. 程序的结构

  * 4.2. 命名与绑定

  * 4.3. 异常

  * 4.4. 运行时组件

* 5. 导入系统

  * 5.1. "importlib"

  * 5.2. 包

  * 5.3. 搜索

  * 5.4. 加载

  * 5.5. 基于路径的查找器

  * 5.6. 替换标准导入系统

  * 5.7. 包相对导入

  * 5.8. 有关 __main__ 的特殊事项

  * 5.9. 参考文献

* 6. 表达式

  * 6.1. 算术转换

  * 6.2. 原子

  * 6.3. 原型

  * 6.4. await 表达式

  * 6.5. 幂运算符

  * 6.6. 一元算术和位运算

  * 6.7. 二元算术运算符

  * 6.8. 移位运算

  * 6.9. 二元位运算

  * 6.10. 比较运算

  * 6.11. 布尔运算

  * 6.12. 赋值表达式

  * 6.13. 条件表达式

  * 6.14. lambda 表达式

  * 6.15. 表达式列表

  * 6.16. 求值顺序

  * 6.17. 运算符优先级

* 7. 简单语句

  * 7.1. 表达式语句

  * 7.2. 赋值语句

  * 7.3. "assert" 语句

  * 7.4. "pass" 语句

  * 7.5. "del" 语句

  * 7.6. "return" 语句

  * 7.7. "yield" 语句

  * 7.8. "raise" 语句

  * 7.9. "break" 语句

  * 7.10. "continue" 语句

  * 7.11. "import" 语句

  * 7.12. "global" 语句

  * 7.13. "nonlocal" 语句

  * 7.14. "type" 语句

* 8. 复合语句

  * 8.1. "if" 语句

  * 8.2. "while" 语句

  * 8.3. "for" 语句

  * 8.4. "try" 语句

  * 8.5. "with" 语句

  * 8.6. "match" 语句

  * 8.7. 函数定义

  * 8.8. 类定义

  * 8.9. 协程

  * 8.10. 类型形参列表

  * 8.11. 标注

* 9. 顶级组件

  * 9.1. 完整的 Python 程序

  * 9.2. 文件输入

  * 9.3. 交互式输入

  * 9.4. 表达式输入

* 10. 完整的语法规范
