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 reference manual describes the interfaces available to C/C++ programmers in detail.
- 1. はじめに
- 2. 字句解析
- 3. データモデル
- 4. 実行モデル
- 5. インポートシステム
- 6. 式 (expression)
- 6.1. 算術変換 (arithmetic conversion)
- 6.2. アトム、原子的要素 (atom)
- 6.3. プライマリ
- 6.4. Await 式
- 6.5. べき乗演算 (power operator)
- 6.6. 単項算術演算とビット単位演算 (unary arithmetic and bitwise operation)
- 6.7. 二項算術演算 (binary arithmetic operation)
- 6.8. シフト演算 (shifting operation)
- 6.9. ビット単位演算の二項演算 (binary bitwise operation)
- 6.10. 比較
- 6.11. ブール演算 (boolean operation)
- 6.12. 代入式
- 6.13. 条件式 (Conditional Expressions)
- 6.14. ラムダ (lambda)
- 6.15. 式のリスト
- 6.16. 評価順序
- 6.17. 演算子の優先順位
- 7. 単純文 (simple statement)
- 8. 複合文 (compound statement)
- 9. トップレベル要素
- 10. 完全な文法仕様