runpy — Locating and executing Python modules — Python 3.14.7 documentation

docs.python.org

Tin mới

modulefinder — Find modules used by a script

importlib — The implementation of import

Python Module Index

3.14.7 Documentation

The Python Standard Library

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

Execute the code of the specified module and return the resulting module’s globals dictionary. The module’s code is first located using the standard import mechanism (refer to PEP 302 for details) and then executed in a

sys: Access system-specific parameters and functions.

Execute the code of the specified module and return the resulting module’s globals dictionary. The module’s code is first located using the standard import mechanism (refer to PEP 302 for details) and then executed in a

Command line and environment

Command line and environment - CPython command line details