Python 語言參考手冊
*******************

這份參考手冊會描述 Python 語言的語法及「核心語意」。它雖然簡潔，但也盡
量保持精確並完整。關於非必要的 (non-essential) 內建物件型別、內建函式
及模組的語意，則在 Python 標準函式庫 (Standard Library) 中說明。關於此
語言的非正式介紹，請參閱 Python 教學。對於 C 或 C++ 程式設計師，還有另
外兩個手冊：擴充和嵌入 Python 直譯器以高階的視野說明如何編寫 Python 擴
充模組，而 Python/C API 參考手冊則詳細說明 C/C++ 程式設計師可用的介面
。

* 1. 簡介

  * 1.1. 可選實作

  * 1.2. 標示法

* 2. 詞法分析

  * 2.1. Line structure

  * 2.2. Other tokens

  * 2.3. Names (identifiers and keywords)

  * 2.4. Literals

  * 2.5. String and Bytes literals

  * 2.6. Numeric literals

  * 2.7. Operators and delimiters

* 3. 資料模型

  * 3.1. 物件、數值和型別

  * 3.2. 標準型別階層

  * 3.3. Special method names

  * 3.4. 協程

* 4. 執行模型

  * 4.1. Structure of a program

  * 4.2. Naming and binding

  * 4.3. 例外

  * 4.4. Runtime Components

* 5. 模組引入系統

  * 5.1. "importlib"

  * 5.2. 套件

  * 5.3. 搜尋

  * 5.4. 載入

  * 5.5. The Path Based Finder

  * 5.6. Replacing the standard import system

  * 5.7. Package Relative Imports

  * 5.8. Special considerations for __main__

  * 5.9. References

* 6. 運算式

  * 6.1. Arithmetic conversions

  * 6.2. Atoms

  * 6.3. Primaries

  * 6.4. Await expression

  * 6.5. The power operator

  * 6.6. Unary arithmetic and bitwise operations

  * 6.7. Binary arithmetic operations

  * 6.8. Shifting operations

  * 6.9. Binary bitwise operations

  * 6.10. Comparisons

  * 6.11. Boolean operations

  * 6.12. Assignment expressions

  * 6.13. Conditional expressions

  * 6.14. Lambdas

  * 6.15. Expression lists

  * 6.16. Evaluation order

  * 6.17. Operator precedence

* 7. 簡單陳述式

  * 7.1. Expression statements

  * 7.2. Assignment statements

  * 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. Type parameter lists

  * 8.11. 註釋

* 9. 最高層級元件

  * 9.1. 完整的 Python 程式

  * 9.2. 檔案輸入

  * 9.3. 互動式輸入

  * 9.4. 運算式輸入

* 10. 完整的文法規格書
