Python运行时服务¶
本章里描述的模块提供了和Python解释器及其环境交互相关的广泛服务。以下是综述:
sys— 系统相关的参数和函数sysconfig— Provide access to Python’s configuration informationbuiltins— 内建对象__main__— Top-level code environmentwarnings—— 警告信息的控制dataclasses— 数据类contextlib— 为with语句上下文提供的工具abc— 抽象基类atexit— 退出处理器traceback— 打印或检索堆栈回溯__future__— Future 语句定义gc— 垃圾回收器接口inspect— 检查对象site—— 指定域的配置钩子