跳转到主要内容

The Python Language Reference

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 builtins-index. Standard library modules are described in library-index.

For an informal introduction to the language, see tutorial-index. For C or C++ programmers, two additional manuals exist: extending-index describes the high-level picture of how to write a Python extension module, and the c-api-index describes the interfaces available to C/C++ programmers in detail.

introduction.rst lexical_analysis.rst datamodel.rst executionmodel.rst import.rst expressions.rst simple_stmts.rst compound_stmts.rst toplevel_components.rst grammar.rst