Python运行时服务P
本章里描述的模块提供了和Python解释器及其环境交互相关的广泛服务。以下是综述:
sys
--- 系统相关的参数和函数sysconfig
--- Provide access to Python's configuration informationbuiltins
--- 内建对象__main__
--- 顶层脚本环境warnings
--- Warning controldataclasses
--- 数据类contextlib
--- Utilities forwith
-statement contextsabc
--- 抽象基类atexit
--- 退出处理器traceback
--- 打印或检索堆栈回溯__future__
--- Future 语句定义gc
--- 垃圾回收器接口inspect
--- 检查对象site
--- Site-specific configuration hook