Python 語言參考手冊¶
這份參考手冊會描述 Python 語言的語法及「核心語意」。它雖然簡潔,但也盡量保持精確並完整。關於非必要的 (non-essential) 內建物件型別、內建函式及模組的語意,則在 Python 標準函式庫 (Standard Library) 中說明。關於此語言的非正式介紹,請參閱 Python 教學。對於 C 或 C++ 程式設計師,還有另外兩個手冊:擴充和嵌入 Python 直譯器以高階的視野說明如何編寫 Python 擴充模組,而 Python/C API 參考手冊則詳細說明 C/C++ 程式設計師可用的介面。
- 1. 簡介
 - 2. 詞法分析
 - 3. 資料模型
 - 4. 執行模型
 - 5. 模組引入系統
 - 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. 簡單陳述式
 - 8. 複合陳述式
 - 9. 最高層級元件
 - 10. 完整的語法規格書