Замінені модулі¶
The modules described in this chapter are deprecated and only kept for backwards compatibility. They have been superseded by other modules.
optparse
— Parser for command line options- Фон
- Підручник
- Довідковий посібник
- Опція зворотних викликів
- Визначення опції зворотного виклику
- Як називаються зворотні виклики
- Викликання помилок у зворотному виклику
- Приклад зворотного виклику 1: тривіальний зворотний виклик
- Приклад зворотного виклику 2: перевірте порядок варіантів
- Приклад зворотного виклику 3: перевірка порядку опцій (узагальнено)
- Приклад зворотного виклику 4: перевірка довільної умови
- Приклад зворотного виклику 5: фіксовані аргументи
- Приклад зворотного виклику 6: змінні аргументи
- Розширення
optparse
imp
— Доступ до внутрішніх елементів import