Logo

上一个主题

Unix syslog 库例程

下一个主题

optparse --- 解析器的命令行选项

本页

  • 提交 Bug
  • 显示源代码

导航

  • 索引
  • 模块 |
  • 下一页 |
  • 上一页 |
  • python logo
  • Python »
  • 3.10.2 Documentation »
  • Python 标准库 »
  • 被取代的模块
  • |

被取代的模块¶

本章中描述的模块均已弃用,仅保留用于向后兼容。 它们已经被其他模块所取代。

  • optparse --- 解析器的命令行选项
    • 背景
      • 术语
      • What are options for?
      • 位置位置
    • 教程
      • Understanding option actions
      • The store action
      • Handling boolean (flag) options
      • Other actions
      • 默认值
      • Generating help
        • Grouping Options
      • Printing a version string
      • How optparse handles errors
      • Putting it all together
    • 参考指南
      • 创建解析器
      • 填充解析器
      • 定义选项
      • Option attributes
      • Standard option actions
      • Standard option types
      • 解析参数
      • Querying and manipulating your option parser
      • Conflicts between options
      • 清理
      • Other methods
    • Option Callbacks
      • Defining a callback option
      • How callbacks are called
      • Raising errors in a callback
      • Callback example 1: trivial callback
      • Callback example 2: check option order
      • Callback example 3: check option order (generalized)
      • Callback example 4: check arbitrary condition
      • Callback example 5: fixed arguments
      • Callback example 6: variable arguments
    • Extending optparse
      • Adding new types
      • Adding new actions
  • imp —— 由代码内部访问 import 。
    • 例子

上一个主题

Unix syslog 库例程

下一个主题

optparse --- 解析器的命令行选项

本页

  • 提交 Bug
  • 显示源代码

导航

  • 索引
  • 模块 |
  • 下一页 |
  • 上一页 |
  • python logo
  • Python »
  • 3.10.2 Documentation »
  • 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.