Python 语言服务¶
Python 提供了许多模块来帮助使用 Python 语言。 这些模块支持标记化、解析、语法分析、字节码反汇编以及各种其他工具。
这些模块包括:
ast
--- 抽象语法树symtable
--- Access to the compiler's symbol tablestoken
--- Constants used with Python parse treeskeyword
--- 检验 Python 关键字tokenize
--- Python 源代码的分词器tabnanny
--- 检测有歧义的缩进pyclbr
--- Python module browser supportpy_compile
--- 编译 Python 源文件compileall
--- 字节编译 Python 库dis
--- Python 字节码反汇编器pickletools
--- pickle 开发者工具