Справочник по языку 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: Extending and Embedding the Python Interpreter 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. Execution model
- 5. The import system
- 6. Expressions
- 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. Инструкции выражений
- 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. Compound statements
- 9. Компоненты верхнего уровня
- 10. Полная спецификация грамматики