mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-08 06:55:36 +08:00
1 line
7.7 KiB
HTML
1 line
7.7 KiB
HTML
<div class="body" role="main"><div class="section" id="python-language-services"><h1><span class="yiyi-st" id="yiyi-9">32. </span><span class="yiyi-st" id="yiyi-10">Python Language Services</span></h1><p><span class="yiyi-st" id="yiyi-11">Python提供了许多模块来协助使用Python语言。</span><span class="yiyi-st" id="yiyi-12">这些模块支持标记化,解析,语法分析,字节码解构和各种其他设施。</span></p><p><span class="yiyi-st" id="yiyi-13">这些模块包括:</span></p><div class="toctree-wrapper compound"><ul><li class="toctree-l1"><span class="yiyi-st" id="yiyi-20"><a class="reference internal" href="parser.html">32.1. <code class="docutils literal"><span class="pre">parser</span></code> - 访问Python解析树</a></span><ul><li class="toctree-l2"><span class="yiyi-st" id="yiyi-14"><a class="reference internal" href="parser.html#creating-st-objects">32.1.1.创建ST对象</a></span></li><li class="toctree-l2"><span class="yiyi-st" id="yiyi-15"><a class="reference internal" href="parser.html#converting-st-objects">32.1.2.转换ST对象</a></span></li><li class="toctree-l2"><span class="yiyi-st" id="yiyi-16"><a class="reference internal" href="parser.html#queries-on-st-objects">32.1.3. ST对象</a>上的查询</span></li><li class="toctree-l2"><span class="yiyi-st" id="yiyi-17"><a class="reference internal" href="parser.html#exceptions-and-error-handling">32.1.4.异常和错误处理</a></span></li><li class="toctree-l2"><span class="yiyi-st" id="yiyi-18"><a class="reference internal" href="parser.html#st-objects">32.1.5. ST对象</a></span></li><li class="toctree-l2"><span class="yiyi-st" id="yiyi-19"><a class="reference internal" href="parser.html#example-emulation-of-compile">32.1.6.示例:<code class="docutils literal"><span class="pre">compile()</span></code></a>的仿真</span></li></ul></li><li class="toctree-l1"><span class="yiyi-st" id="yiyi-24"><a class="reference internal" href="ast.html">32.2. <code class="docutils literal"><span class="pre">ast</span></code> - 抽象语法树</a></span><ul><li class="toctree-l2"><span class="yiyi-st" id="yiyi-21"><a class="reference internal" href="ast.html#node-classes">32.2.1.节点类</a></span></li><li class="toctree-l2"><span class="yiyi-st" id="yiyi-22"><a class="reference internal" href="ast.html#abstract-grammar">32.2.2.抽象语法</a></span></li><li class="toctree-l2"><span class="yiyi-st" id="yiyi-23"><a class="reference internal" href="ast.html#ast-helpers">32.2.3. <code class="docutils literal"><span class="pre">ast</span></code>助手</a></span></li></ul></li><li class="toctree-l1"><span class="yiyi-st" id="yiyi-27"><a class="reference internal" href="symtable.html">32.3. <code class="docutils literal"><span class="pre">symtable</span></code> - 访问编译器的符号表</a></span><ul><li class="toctree-l2"><span class="yiyi-st" id="yiyi-25"><a class="reference internal" href="symtable.html#generating-symbol-tables">32.3.1.生成符号表</a></span></li><li class="toctree-l2"><span class="yiyi-st" id="yiyi-26"><a class="reference internal" href="symtable.html#examining-symbol-tables">32.3.2.检查符号表</a></span></li></ul></li><li class="toctree-l1"><span class="yiyi-st" id="yiyi-28"><a class="reference internal" href="symbol.html">32.4. <code class="docutils literal"><span class="pre">symbol</span></code> - 用于Python解析树的常量</a></span></li><li class="toctree-l1"><span class="yiyi-st" id="yiyi-29"><a class="reference internal" href="token.html">32.5. <code class="docutils literal"><span class="pre">token</span></code> - 用于Python解析树的常量</a></span></li><li class="toctree-l1"><span class="yiyi-st" id="yiyi-30"><a class="reference internal" href="keyword.html">32.6. <code class="docutils literal"><span class="pre">keyword</span></code> - 测试Python关键字</a></span></li><li class="toctree-l1"><span class="yiyi-st" id="yiyi-34"><a class="reference internal" href="tokenize.html">32.7. <code class="docutils literal"><span class="pre">tokenize</span></code> - 适用于Python源代码的Tokenizer</a></span><ul><li class="toctree-l2"><span class="yiyi-st" id="yiyi-31"><a class="reference internal" href="tokenize.html#tokenizing-input">32.7.1.令牌输入</a></span></li><li class="toctree-l2"><span class="yiyi-st" id="yiyi-32"><a class="reference internal" href="tokenize.html#command-line-usage">32.7.2.命令行用法</a></span></li><li class="toctree-l2"><span class="yiyi-st" id="yiyi-33"><a class="reference internal" href="tokenize.html#examples">32.7.3.示例</a></span></li></ul></li><li class="toctree-l1"><span class="yiyi-st" id="yiyi-35"><a class="reference internal" href="tabnanny.html">32.8. <code class="docutils literal"><span class="pre">tabnanny</span></code> - 检测模糊缩进</a></span></li><li class="toctree-l1"><span class="yiyi-st" id="yiyi-38"><a class="reference internal" href="pyclbr.html">32.9. <code class="docutils literal"><span class="pre">pyclbr</span></code> - Python类浏览器支持</a></span><ul><li class="toctree-l2"><span class="yiyi-st" id="yiyi-36"><a class="reference internal" href="pyclbr.html#class-objects">32.9.1.类对象</a></span></li><li class="toctree-l2"><span class="yiyi-st" id="yiyi-37"><a class="reference internal" href="pyclbr.html#function-objects">32.9.2.功能对象</a></span></li></ul></li><li class="toctree-l1"><span class="yiyi-st" id="yiyi-39"><a class="reference internal" href="py_compile.html">32.10. <code class="docutils literal"><span class="pre">py_compile</span></code> - 编译Python源文件</a></span></li><li class="toctree-l1"><span class="yiyi-st" id="yiyi-42"><a class="reference internal" href="compileall.html">32.11. <code class="docutils literal"><span class="pre">compileall</span></code> - 字节编译Python库</a></span><ul><li class="toctree-l2"><span class="yiyi-st" id="yiyi-40"><a class="reference internal" href="compileall.html#command-line-use">32.11.1.命令行使用</a></span></li><li class="toctree-l2"><span class="yiyi-st" id="yiyi-41"><a class="reference internal" href="compileall.html#public-functions">32.11.2.公共函数</a></span></li></ul></li><li class="toctree-l1"><span class="yiyi-st" id="yiyi-47"><a class="reference internal" href="dis.html">32.12. <code class="docutils literal"><span class="pre">dis</span></code> - Python字节码的反汇编器</a></span><ul><li class="toctree-l2"><span class="yiyi-st" id="yiyi-43"><a class="reference internal" href="dis.html#bytecode-analysis">32.12.1.字节码分析</a></span></li><li class="toctree-l2"><span class="yiyi-st" id="yiyi-44"><a class="reference internal" href="dis.html#analysis-functions">32.12.2.分析函数</a></span></li><li class="toctree-l2"><span class="yiyi-st" id="yiyi-45"><a class="reference internal" href="dis.html#python-bytecode-instructions">32.12.3. Python字节码说明</a></span></li><li class="toctree-l2"><span class="yiyi-st" id="yiyi-46"><a class="reference internal" href="dis.html#opcode-collections">32.12.4.操作码容器</a></span></li></ul></li><li class="toctree-l1"><span class="yiyi-st" id="yiyi-51"><a class="reference internal" href="pickletools.html">32.13. <code class="docutils literal"><span class="pre">pickletools</span></code> - pickle开发工具</a></span><ul><li class="toctree-l2"><span class="yiyi-st" id="yiyi-49"><a class="reference internal" href="pickletools.html#command-line-usage">32.13.1.命令行用法</a></span><ul><li class="toctree-l3"><span class="yiyi-st" id="yiyi-48"><a class="reference internal" href="pickletools.html#command-line-options">32.13.1.1.命令行选项</a></span></li></ul></li><li class="toctree-l2"><span class="yiyi-st" id="yiyi-50"><a class="reference internal" href="pickletools.html#programmatic-interface">32.13.2.程序接口</a></span></li></ul></li></ul></div></div></div> |