uTools-Manuals/docs/python/superseded.html
2019-04-08 23:22:26 +08:00

1 line
8.2 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<div class="body" role="main"><div class="section" id="superseded-modules"><h1><span class="yiyi-st" id="yiyi-9">36. </span><span class="yiyi-st" id="yiyi-10">Superseded Modules</span></h1><p><span class="yiyi-st" id="yiyi-11">本章中介绍的模块已弃用,仅保留用于向后兼容性。</span><span class="yiyi-st" id="yiyi-12">它们已被其他模块取代。</span></p><div class="toctree-wrapper compound"><ul><li class="toctree-l1"><span class="yiyi-st" id="yiyi-53"><a class="reference internal" href="optparse.html">36.1. <code class="docutils literal"><span class="pre">optparse</span></code> - 用于命令行选项的解析器</a></span><ul><li class="toctree-l2"><span class="yiyi-st" id="yiyi-16"><a class="reference internal" href="optparse.html#background">36.1.1.背景</a></span><ul><li class="toctree-l3"><span class="yiyi-st" id="yiyi-13"><a class="reference internal" href="optparse.html#terminology">36.1.1.1.术语</a></span></li><li class="toctree-l3"><span class="yiyi-st" id="yiyi-14"><a class="reference internal" href="optparse.html#what-are-options-for">36.1.1.2.什么是选项?</a></span></li><li class="toctree-l3"><span class="yiyi-st" id="yiyi-15"><a class="reference internal" href="optparse.html#what-are-positional-arguments-for">36.1.1.3. 的位置参数是什么?</a></span></li></ul></li><li class="toctree-l2"><span class="yiyi-st" id="yiyi-27"><a class="reference internal" href="optparse.html#tutorial">36.1.2.教程</a></span><ul><li class="toctree-l3"><span class="yiyi-st" id="yiyi-17"><a class="reference internal" href="optparse.html#understanding-option-actions">36.1.2.1.了解选项操作</a></span></li><li class="toctree-l3"><span class="yiyi-st" id="yiyi-18"><a class="reference internal" href="optparse.html#the-store-action">36.1.2.2.商店操作</a></span></li><li class="toctree-l3"><span class="yiyi-st" id="yiyi-19"><a class="reference internal" href="optparse.html#handling-boolean-flag-options">36.1.2.3.处理boolean标志选项</a></span></li><li class="toctree-l3"><span class="yiyi-st" id="yiyi-20"><a class="reference internal" href="optparse.html#other-actions">36.1.2.4.其他操作</a></span></li><li class="toctree-l3"><span class="yiyi-st" id="yiyi-21"><a class="reference internal" href="optparse.html#default-values">36.1.2.5.默认值</a></span></li><li class="toctree-l3"><span class="yiyi-st" id="yiyi-23"><a class="reference internal" href="optparse.html#generating-help">36.1.2.6.正在生成帮助</a></span><ul><li class="toctree-l4"><span class="yiyi-st" id="yiyi-22"><a class="reference internal" href="optparse.html#grouping-options">36.1.2.6.1.分组选项</a></span></li></ul></li><li class="toctree-l3"><span class="yiyi-st" id="yiyi-24"><a class="reference internal" href="optparse.html#printing-a-version-string">36.1.2.7.打印版本字符串</a></span></li><li class="toctree-l3"><span class="yiyi-st" id="yiyi-25"><a class="reference internal" href="optparse.html#how-optparse-handles-errors">36.1.2.8.如何<code class="docutils literal"><span class="pre">optparse</span></code>处理错误</a></span></li><li class="toctree-l3"><span class="yiyi-st" id="yiyi-26"><a class="reference internal" href="optparse.html#putting-it-all-together">36.1.2.9.将它们放在一起</a></span></li></ul></li><li class="toctree-l2"><span class="yiyi-st" id="yiyi-39"><a class="reference internal" href="optparse.html#reference-guide">36.1.3.参考指南</a></span><ul><li class="toctree-l3"><span class="yiyi-st" id="yiyi-28"><a class="reference internal" href="optparse.html#creating-the-parser">36.1.3.1.创建解析器</a></span></li><li class="toctree-l3"><span class="yiyi-st" id="yiyi-29"><a class="reference internal" href="optparse.html#populating-the-parser">36.1.3.2.填充解析器</a></span></li><li class="toctree-l3"><span class="yiyi-st" id="yiyi-30"><a class="reference internal" href="optparse.html#defining-options">36.1.3.3.定义选项</a></span></li><li class="toctree-l3"><span class="yiyi-st" id="yiyi-31"><a class="reference internal" href="optparse.html#option-attributes">36.1.3.4.选项属性</a></span></li><li class="toctree-l3"><span class="yiyi-st" id="yiyi-32"><a class="reference internal" href="optparse.html#standard-option-actions">36.1.3.5.标准选项操作</a></span></li><li class="toctree-l3"><span class="yiyi-st" id="yiyi-33"><a class="reference internal" href="optparse.html#standard-option-types">36.1.3.6.标准选项类型</a></span></li><li class="toctree-l3"><span class="yiyi-st" id="yiyi-34"><a class="reference internal" href="optparse.html#parsing-arguments">36.1.3.7.解析参数</a></span></li><li class="toctree-l3"><span class="yiyi-st" id="yiyi-35"><a class="reference internal" href="optparse.html#querying-and-manipulating-your-option-parser"> 36.1.3.8.查询和操作您的选项解析器</a></span></li><li class="toctree-l3"><span class="yiyi-st" id="yiyi-36"><a class="reference internal" href="optparse.html#conflicts-between-options">36.1.3.9.选项之间的冲突</a></span></li><li class="toctree-l3"><span class="yiyi-st" id="yiyi-37"><a class="reference internal" href="optparse.html#cleanup">36.1.3.10.清理</a></span></li><li class="toctree-l3"><span class="yiyi-st" id="yiyi-38"><a class="reference internal" href="optparse.html#other-methods">36.1.3.11.其他方法</a></span></li></ul></li><li class="toctree-l2"><span class="yiyi-st" id="yiyi-49"><a class="reference internal" href="optparse.html#option-callbacks">36.1.4.选项回调</a></span><ul><li class="toctree-l3"><span class="yiyi-st" id="yiyi-40"><a class="reference internal" href="optparse.html#defining-a-callback-option">36.1.4.1.定义回调选项</a></span></li><li class="toctree-l3"><span class="yiyi-st" id="yiyi-41"><a class="reference internal" href="optparse.html#how-callbacks-are-called">36.1.4.2.如何调用回调</a></span></li><li class="toctree-l3"><span class="yiyi-st" id="yiyi-42"><a class="reference internal" href="optparse.html#raising-errors-in-a-callback">36.1.4.3.提高回调中的错误</a></span></li><li class="toctree-l3"><span class="yiyi-st" id="yiyi-43"><a class="reference internal" href="optparse.html#callback-example-1-trivial-callback">36.1.4.4.回调示例1平凡回调</a></span></li><li class="toctree-l3"><span class="yiyi-st" id="yiyi-44"><a class="reference internal" href="optparse.html#callback-example-2-check-option-order">36.1.4.5.回调示例2检查选项顺序</a></span></li><li class="toctree-l3"><span class="yiyi-st" id="yiyi-45"><a class="reference internal" href="optparse.html#callback-example-3-check-option-order-generalized">36.1.4.6.回调示例3检查选项顺序广义</a></span></li><li class="toctree-l3"><span class="yiyi-st" id="yiyi-46"><a class="reference internal" href="optparse.html#callback-example-4-check-arbitrary-condition">36.1.4.7.回调示例4检查任意条件</a></span></li><li class="toctree-l3"><span class="yiyi-st" id="yiyi-47"><a class="reference internal" href="optparse.html#callback-example-5-fixed-arguments">36.1.4.8.回调示例5固定参数</a></span></li><li class="toctree-l3"><span class="yiyi-st" id="yiyi-48"><a class="reference internal" href="optparse.html#callback-example-6-variable-arguments">36.1.4.9.回调示例6变量参数</a></span></li></ul></li><li class="toctree-l2"><span class="yiyi-st" id="yiyi-52"><a class="reference internal" href="optparse.html#extending-optparse">36.1.5.延伸<code class="docutils literal"><span class="pre">optparse</span></code></a></span><ul><li class="toctree-l3"><span class="yiyi-st" id="yiyi-50"><a class="reference internal" href="optparse.html#adding-new-types">36.1.5.1.添加新类型</a></span></li><li class="toctree-l3"><span class="yiyi-st" id="yiyi-51"><a class="reference internal" href="optparse.html#adding-new-actions">36.1.5.2.添加新操作</a></span></li></ul></li></ul></li><li class="toctree-l1"><span class="yiyi-st" id="yiyi-55"><a class="reference internal" href="imp.html">36.2. <code class="docutils literal"><span class="pre">imp</span></code> - 访问<code class="docutils literal"><span class="pre">import</span></code>内部</a></span><ul><li class="toctree-l2"><span class="yiyi-st" id="yiyi-54"><a class="reference internal" href="imp.html#examples">36.2.1.示例</a></span></li></ul></li></ul></div></div></div>