9. Top-level components — Python 3.11.16 documentation

docs.python.org

Tin mới

8. Compound statements

10. Full Grammar specification

Python Module Index

3.11.16 Documentation

The Python Language Reference

sys: Access system-specific parameters and functions.

The syntax for a complete Python program is that for file input, described in the next section.

builtins: The module that provides the built-in namespace.

The syntax for a complete Python program is that for file input, described in the next section.

__main__: The environment where top-level code is run. Covers command-line interfaces, import-time behavior, and ``__name__ == '__main__'``.

The syntax for a complete Python program is that for file input, described in the next section.

9.1. Complete Python programs¶

The syntax for a complete Python program is that for file input, described in the next section.

9.4. Expression input¶

eval() is used for expression input. It ignores leading whitespace. The string argument to eval() must have the following form:

9.4. Expression input¶

eval() is used for expression input. It ignores leading whitespace. The string argument to eval() must have the following form: