合规国际互联网加速 OSASE为企业客户提供高速稳定SD-WAN国际加速解决方案。 广告
### 导航 - [索引](../genindex.xhtml "总目录") - [模块](../py-modindex.xhtml "Python 模块索引") | - [下一页](optparse.xhtml "optparse --- Parser for command line options") | - [上一页](syslog.xhtml "Unix syslog 库例程") | - ![](https://box.kancloud.cn/a721fc7ec672275e257bbbfde49a4d4e_16x16.png) - [Python](https://www.python.org/) » - zh\_CN 3.7.3 [文档](../index.xhtml) » - [Python 标准库](index.xhtml) » - $('.inline-search').show(0); | # 被取代的模块 本章中描述的模块均已弃用,仅保留用于向后兼容。 它们已经被其他模块所取代。 - [`optparse` --- Parser for command line options](optparse.xhtml) - [Background](optparse.xhtml#background) - [Terminology](optparse.xhtml#terminology) - [What are options for?](optparse.xhtml#what-are-options-for) - [What are positional arguments for?](optparse.xhtml#what-are-positional-arguments-for) - [教程](optparse.xhtml#tutorial) - [Understanding option actions](optparse.xhtml#understanding-option-actions) - [The store action](optparse.xhtml#the-store-action) - [Handling boolean (flag) options](optparse.xhtml#handling-boolean-flag-options) - [Other actions](optparse.xhtml#other-actions) - [Default values](optparse.xhtml#default-values) - [Generating help](optparse.xhtml#generating-help) - [Grouping Options](optparse.xhtml#grouping-options) - [Printing a version string](optparse.xhtml#printing-a-version-string) - [How `optparse` handles errors](optparse.xhtml#how-optparse-handles-errors) - [Putting it all together](optparse.xhtml#putting-it-all-together) - [Reference Guide](optparse.xhtml#reference-guide) - [Creating the parser](optparse.xhtml#creating-the-parser) - [Populating the parser](optparse.xhtml#populating-the-parser) - [Defining options](optparse.xhtml#defining-options) - [Option attributes](optparse.xhtml#option-attributes) - [Standard option actions](optparse.xhtml#standard-option-actions) - [Standard option types](optparse.xhtml#standard-option-types) - [解析参数](optparse.xhtml#parsing-arguments) - [Querying and manipulating your option parser](optparse.xhtml#querying-and-manipulating-your-option-parser) - [Conflicts between options](optparse.xhtml#conflicts-between-options) - [Cleanup](optparse.xhtml#cleanup) - [Other methods](optparse.xhtml#other-methods) - [Option Callbacks](optparse.xhtml#option-callbacks) - [Defining a callback option](optparse.xhtml#defining-a-callback-option) - [How callbacks are called](optparse.xhtml#how-callbacks-are-called) - [Raising errors in a callback](optparse.xhtml#raising-errors-in-a-callback) - [Callback example 1: trivial callback](optparse.xhtml#callback-example-1-trivial-callback) - [Callback example 2: check option order](optparse.xhtml#callback-example-2-check-option-order) - [Callback example 3: check option order (generalized)](optparse.xhtml#callback-example-3-check-option-order-generalized) - [Callback example 4: check arbitrary condition](optparse.xhtml#callback-example-4-check-arbitrary-condition) - [Callback example 5: fixed arguments](optparse.xhtml#callback-example-5-fixed-arguments) - [Callback example 6: variable arguments](optparse.xhtml#callback-example-6-variable-arguments) - [Extending `optparse`](optparse.xhtml#extending-optparse) - [Adding new types](optparse.xhtml#adding-new-types) - [Adding new actions](optparse.xhtml#adding-new-actions) - [`imp` --- Access the `import` internals](imp.xhtml) - [示例](imp.xhtml#examples) ### 导航 - [索引](../genindex.xhtml "总目录") - [模块](../py-modindex.xhtml "Python 模块索引") | - [下一页](optparse.xhtml "optparse --- Parser for command line options") | - [上一页](syslog.xhtml "Unix syslog 库例程") | - ![](https://box.kancloud.cn/a721fc7ec672275e257bbbfde49a4d4e_16x16.png) - [Python](https://www.python.org/) » - zh\_CN 3.7.3 [文档](../index.xhtml) » - [Python 标准库](index.xhtml) » - $('.inline-search').show(0); | © [版权所有](../copyright.xhtml) 2001-2019, Python Software Foundation. Python 软件基金会是一个非盈利组织。 [请捐助。](https://www.python.org/psf/donations/) 最后更新于 5月 21, 2019. [发现了问题](../bugs.xhtml)? 使用[Sphinx](http://sphinx.pocoo.org/)1.8.4 创建。