Python運(yùn)行時(shí)服務(wù)?
本章里描述的模塊提供了和Python解釋器及其環(huán)境交互相關(guān)的廣泛服務(wù)。以下是綜述:
sys--- 系統(tǒng)相關(guān)的參數(shù)和函數(shù)sysconfig—— 提供對(duì) Python 配置信息的訪問(wèn)支持builtins--- 內(nèi)建對(duì)象__main__--- Top-level code environmentwarnings—— 警告信息的控制dataclasses--- 數(shù)據(jù)類contextlib--- 為with語(yǔ)句上下文提供的工具abc--- 抽象基類atexit--- 退出處理器traceback—— 打印或讀取堆棧的跟蹤信息__future__--- Future 語(yǔ)句定義gc--- 垃圾回收器接口inspect--- 檢查對(duì)象site—— 指定域的配置鉤子