Python 运行时服务¶
本章描述的模块广泛服务于 Python 解释器及其与其环境的交互:
sys
--- System-specific parameters and functionssys.monitoring
--- Execution event monitoringsysconfig
--- Provide access to Python's configuration informationbuiltins
--- Built-in objects__main__
--- Top-level code environmentwarnings
--- Warning controldataclasses
--- 数据类contextlib
--- 为with
语句上下文提供的工具abc
--- Abstract Base Classesatexit
--- Exit handlerstraceback
--- Print or retrieve a stack traceback__future__
--- Future statement definitionsgc
--- Garbage Collector interfaceinspect
--- Inspect live objectssite
--- Site-specific configuration hook