Logo

上個主題

Unix syslog 库例程

下個主題

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

本頁

  • 提交 Bug
  • 顯示原始碼

瀏覽

  • 索引
  • 模組 |
  • 下一頁 |
  • 上一頁 |
  • python logo
  • Python »
  • 3.8.16 Documentation »
  • Python 標準函式庫 (Standard Library) »
  • |

被取代的模块¶

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

  • 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.8.16 Documentation »
  • Python 標準函式庫 (Standard Library) »
  • |
© 版權所有 2001-2023, 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.

The Python Software Foundation is a non-profit corporation. Please donate.

最後更新於 2月 09, 2023。 Found a bug?
Created using Sphinx 2.4.4.