“Python/docs/3.9/library/superseded”的版本间差异
来自菜鸟教程
Python/docs/3.9/library/superseded
(autoload) |
小 (Page commit) |
||
第1行: | 第1行: | ||
+ | {{DISPLAYTITLE:被取代的模块 — Python 文档}} | ||
<div id="superseded-modules" class="section"> | <div id="superseded-modules" class="section"> | ||
<span id="superseded"></span> | <span id="superseded"></span> | ||
− | = | + | = 被取代的模块 = |
− | + | 本章中描述的模块已弃用,仅保留用于向后兼容。 它们已被其他模块取代。 | |
− | |||
<div class="toctree-wrapper compound"> | <div class="toctree-wrapper compound"> | ||
− | * [[../optparse|<code>optparse</code> | + | * [[../optparse|<code>optparse</code> — 命令行选项解析器]] |
− | ** [[../optparse#background| | + | ** [[../optparse#background|背景]] |
− | *** [[../optparse#terminology| | + | *** [[../optparse#terminology|术语]] |
− | *** [[../optparse#what-are-options-for| | + | *** [[../optparse#what-are-options-for|什么是选项?]] |
− | *** [[../optparse#what-are-positional-arguments-for| | + | *** [[../optparse#what-are-positional-arguments-for|什么是位置参数?]] |
− | ** [[../optparse#tutorial| | + | ** [[../optparse#tutorial|教程]] |
− | *** [[../optparse#understanding-option-actions| | + | *** [[../optparse#understanding-option-actions|了解选项操作]] |
− | *** [[../optparse#the-store-action| | + | *** [[../optparse#the-store-action|店铺动作]] |
− | *** [[../optparse#handling-boolean-flag-options| | + | *** [[../optparse#handling-boolean-flag-options|处理布尔(标志)选项]] |
− | *** [[../optparse#other-actions| | + | *** [[../optparse#other-actions|其他行为]] |
− | *** [[../optparse#default-values| | + | *** [[../optparse#default-values|默认值]] |
− | *** [[../optparse#generating-help| | + | *** [[../optparse#generating-help|生成帮助]] |
− | **** [[../optparse#grouping-options| | + | **** [[../optparse#grouping-options|分组选项]] |
− | *** [[../optparse#printing-a-version-string| | + | *** [[../optparse#printing-a-version-string|打印版本字符串]] |
− | *** [[../optparse#how-optparse-handles-errors| | + | *** [[../optparse#how-optparse-handles-errors|<code>optparse</code> 如何处理错误]] |
− | *** [[../optparse#putting-it-all-together| | + | *** [[../optparse#putting-it-all-together|把这一切放在一起]] |
− | ** [[../optparse#reference-guide| | + | ** [[../optparse#reference-guide|参考指南]] |
− | *** [[../optparse#creating-the-parser| | + | *** [[../optparse#creating-the-parser|创建解析器]] |
− | *** [[../optparse#populating-the-parser| | + | *** [[../optparse#populating-the-parser|填充解析器]] |
− | *** [[../optparse#defining-options| | + | *** [[../optparse#defining-options|定义选项]] |
− | *** [[../optparse#option-attributes| | + | *** [[../optparse#option-attributes|选项属性]] |
− | *** [[../optparse#standard-option-actions| | + | *** [[../optparse#standard-option-actions|标准选项操作]] |
− | *** [[../optparse#standard-option-types| | + | *** [[../optparse#standard-option-types|标准选项类型]] |
− | *** [[../optparse#parsing-arguments| | + | *** [[../optparse#parsing-arguments|解析参数]] |
− | *** [[../optparse#querying-and-manipulating-your-option-parser| | + | *** [[../optparse#querying-and-manipulating-your-option-parser|查询和操作您的选项解析器]] |
− | *** [[../optparse#conflicts-between-options| | + | *** [[../optparse#conflicts-between-options|选项之间的冲突]] |
− | *** [[../optparse#cleanup| | + | *** [[../optparse#cleanup|清理]] |
− | *** [[../optparse#other-methods| | + | *** [[../optparse#other-methods|其他方法]] |
− | ** [[../optparse#option-callbacks| | + | ** [[../optparse#option-callbacks|期权回调]] |
− | *** [[../optparse#defining-a-callback-option| | + | *** [[../optparse#defining-a-callback-option|定义回调选项]] |
− | *** [[../optparse#how-callbacks-are-called| | + | *** [[../optparse#how-callbacks-are-called|如何调用回调]] |
− | *** [[../optparse#raising-errors-in-a-callback| | + | *** [[../optparse#raising-errors-in-a-callback|在回调中引发错误]] |
− | *** [[optparse | + | *** [[../optparse#callback-example-1-trivial-callback|回调示例 1:普通回调]] |
− | *** [[optparse | + | *** [[../optparse#callback-example-2-check-option-order|回调示例2:检查选项顺序]] |
− | *** [[optparse | + | *** [[../optparse#callback-example-3-check-option-order-generalized|回调示例 3:检查选项顺序(广义)]] |
− | *** [[optparse | + | *** [[../optparse#callback-example-4-check-arbitrary-condition|回调示例4:检查任意条件]] |
− | *** [[optparse | + | *** [[../optparse#callback-example-5-fixed-arguments|回调示例 5:固定参数]] |
− | *** [[optparse | + | *** [[../optparse#callback-example-6-variable-arguments|回调示例 6:可变参数]] |
− | ** [[../optparse#extending-optparse| | + | ** [[../optparse#extending-optparse|延伸 <code>optparse</code>]] |
− | *** [[../optparse#adding-new-types| | + | *** [[../optparse#adding-new-types|添加新类型]] |
− | *** [[../optparse#adding-new-actions| | + | *** [[../optparse#adding-new-actions|添加新动作]] |
− | * [[../imp|<code>imp</code> | + | * [[../imp|<code>imp</code> — 访问 <span class="xref std std-ref">import</span> 内部]] |
− | ** [[../imp#examples| | + | ** [[../imp#examples|例子]] |
第57行: | 第57行: | ||
</div> | </div> | ||
+ | <div class="clearer"> | ||
− | [[Category:Python 3.9 | + | |
+ | |||
+ | </div> | ||
+ | |||
+ | [[Category:Python 3.9 文档]] |
2021年10月31日 (日) 04:53的最新版本
被取代的模块
本章中描述的模块已弃用,仅保留用于向后兼容。 它们已被其他模块取代。