被取代的模块¶
本章中描述的模块均已弃用,仅保留用于向后兼容。 它们已经被其他模块所取代。
optparse
--- Parser for command line options- Background
- 教程
- Reference Guide
- 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
imp
--- Access theimport
internals