Python logo

上一个主题

使用 importlib.metadata

下一个主题

parser --- 访问 Python 解析树

本页

  • 报告 Bug
  • 显示源代码

导航

  • 索引
  • 模块 |
  • 下一页 |
  • 上一页 |
  • Python logo
  • Python »
  • 3.8.18 Documentation »
  • Python 标准库 »
  • |
  • |

Python 语言服务¶

Python 提供了许多模块来帮助使用 Python 语言。 这些模块支持标记化、解析、语法分析、字节码反汇编以及各种其他工具。

这些模块包括:

  • parser --- 访问 Python 解析树
    • 创建 ST 对象
    • 转换 ST 对象
    • Queries on ST Objects
    • 异常和错误处理
    • ST 对象
    • 示例: compile() 的模拟
  • ast --- 抽象语法树
    • 节点类
    • 抽象文法
    • ast 中的辅助函数
  • symtable ——访问编译器的符号表
    • 符号表的生成
    • 符号表的查看
  • symbol --- 与 Python 解析树一起使用的常量
  • token --- 与Python解析树一起使用的常量
  • keyword --- 检验Python关键字
  • tokenize --- 对 Python 代码使用的标记解析器
    • 对输入进行解析标记
    • 命令行用法
    • 例子
  • tabnanny --- 模糊缩进检测
  • pyclbr --- Python 模块浏览器支持
    • 函数对象
    • 类对象
  • py_compile --- 编译 Python 源文件
  • compileall --- 字节编译 Python 库
    • 使用命令行
    • 公有函数
  • dis --- Python 字节码反汇编器
    • 字节码分析
    • 分析函数
    • Python字节码说明
    • 操作码集合
  • pickletools --- pickle 开发者工具集
    • 命令行语法
      • 命令行选项
    • 编程接口

上一个主题

使用 importlib.metadata

下一个主题

parser --- 访问 Python 解析树

本页

  • 报告 Bug
  • 显示源代码

导航

  • 索引
  • 模块 |
  • 下一页 |
  • 上一页 |
  • Python logo
  • Python »
  • 3.8.18 Documentation »
  • Python 标准库 »
  • |
  • |
© 版权所有 2001-2024, Python Software Foundation.
This page is licensed under the Python Software Foundation License Version 2.
Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.

The Python Software Foundation is a non-profit corporation. Please donate.

最后更新于 2月 08, 2024. Found a bug?
Created using Sphinx 2.4.4.