32. Python 语言服务¶
Python 提供了许多模块来帮助使用 Python 语言。 这些模块支持标记化、解析、语法分析、字节码反汇编以及各种其他工具。
这些模块包括:
- 32.1.
parser— 访问 Python 解析树 - 32.2.
ast— 抽象语法树 - 32.3.
symtable— Access to the compiler’s symbol tables - 32.4.
symbol— 与 Python 解析树一起使用的常量 - 32.5.
token— 与Python解析树一起使用的常量 - 32.6.
keyword— 检验Python关键字 - 32.7.
tokenize– 对 Python 代码使用的标记解析器 - 32.8.
tabnanny— 模糊缩进检测 - 32.9.
pyclbr— Python class browser support - 32.10.
py_compile— Compile Python source files - 32.11.
compileall— Byte-compile Python libraries - 32.12.
dis— Python 字节码反汇编器 - 32.13.
pickletools— pickle 开发者工具集
