Python logo

上一主题

sys.path 模块搜索路径的初始化

下一主题

ast --- 抽象语法树

当前页

  • 报告 Bug
  • 显示源码

导航

  • 索引
  • 模块 |
  • 下一页 |
  • 上一页 |
  • Python logo
  • Python »
  • 3.12.4 Documentation »
  • Python 标准库 »
  • Python 语言服务
  • |
  • |

Python 语言服务¶

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

这些模块包括:

  • ast --- 抽象语法树
    • 抽象文法
    • 节点类
      • 根节点
      • 字面值
      • 变量
      • 表达式
        • 抽取
        • 推导式
      • 语句
        • 导入
      • 控制流
      • 模式匹配
      • 类型形参
      • 函数与类定义
      • async 与 await
    • ast 中的辅助函数
    • 编译器旗标
    • 命令行用法
  • symtable --- Access to the compiler's symbol tables
    • 符号表的生成
    • 符号表的查看
  • token --- Constants used with Python parse trees
  • keyword --- 检验 Python 关键字
  • tokenize --- Python 源代码的分词器
    • 对输入进行解析标记
    • 命令行用法
    • 例子
  • tabnanny --- 检测有歧义的缩进
  • pyclbr --- Python module browser support
    • Function 对象
    • Class 对象
  • py_compile --- 编译 Python 源文件
    • 命令行接口
  • compileall --- 字节编译 Python 库
    • 使用命令行
    • 公有函数
  • dis --- Python 字节码反汇编器
    • 命令行接口
    • 字节码分析
    • 分析函数
    • Python字节码说明
    • 操作码集合
  • pickletools --- pickle 开发者工具
    • 命令行语法
      • 命令行选项
    • 编程接口

上一主题

sys.path 模块搜索路径的初始化

下一主题

ast --- 抽象语法树

当前页

  • 报告 Bug
  • 显示源码
«

导航

  • 索引
  • 模块 |
  • 下一页 |
  • 上一页 |
  • Python logo
  • Python »
  • 3.12.4 Documentation »
  • Python 标准库 »
  • 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.
See History and License for more information.

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

最后更新于 Jun 18, 2024 (21:19 UTC). Found a bug?
由 Sphinx 7.3.7创建。