Logo

上一个主题

Using importlib.metadata

下一个主题

ast --- 抽象语法树

本页

  • 提交 Bug
  • 显示源代码

导航

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

Python 语言服务¶

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

这些模块包括:

  • ast --- 抽象语法树
    • 抽象文法
    • 节点类
      • 字面值
      • Variables
      • 表达式
        • Subscripting
        • Comprehensions
      • Statements
        • Imports
      • Control flow
      • Pattern matching
      • Function and class definitions
      • Async and await
    • ast 中的辅助函数
    • Compiler Flags
    • 命令行用法
  • symtable ——访问编译器的符号表
    • 符号表的生成
    • 符号表的查看
  • token --- 与Python解析树一起使用的常量
  • keyword --- 检验Python关键字
  • tokenize --- 对 Python 代码使用的标记解析器
    • 对输入进行解析标记
    • 命令行用法
    • 例子
  • tabnanny --- 模糊缩进检测
  • pyclbr --- Python 模块浏览器支持
    • Function 对象
    • Class 对象
  • py_compile --- 编译 Python 源文件
    • 命令行接口
  • compileall --- Byte-compile Python libraries
    • Command-line use
    • Public functions
  • dis --- Python 字节码反汇编器
    • 字节码分析
    • 分析函数
    • Python字节码说明
    • 操作码集合
  • pickletools --- pickle 开发者工具集
    • 命令行语法
      • 命令行选项
    • 编程接口

上一个主题

Using importlib.metadata

下一个主题

ast --- 抽象语法树

本页

  • 提交 Bug
  • 显示源代码

导航

  • 索引
  • 模块 |
  • 下一页 |
  • 上一页 |
  • python logo
  • Python »
  • 3.10.2 Documentation »
  • Python 标准库 »
  • Python 语言服务
  • |
© 版权所有 2001-2022, 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.

最后更新于 3月 06, 2022. Found a bug?
Created using Sphinx 3.2.1.