File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -2532,10 +2532,11 @@ msgid ""
2532
2532
"command-line options are the action and type of each option, the most likely"
2533
2533
" direction of extension is to add new actions and new types."
2534
2534
msgstr ""
2535
+ "由于控制 :mod:`optparse` 如何读取命令行选项的两个主要因子是每个选项的动作和类型,所以扩展最可能的方向就是添加新的动作和新的类型。"
2535
2536
2536
2537
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1852
2537
2538
msgid "Adding new types"
2538
- msgstr ""
2539
+ msgstr "添加新的类型 "
2539
2540
2540
2541
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1854
2541
2542
msgid ""
@@ -2544,18 +2545,21 @@ msgid ""
2544
2545
":mod:`optparse`'s types: :attr:`~Option.TYPES` and "
2545
2546
":attr:`~Option.TYPE_CHECKER`."
2546
2547
msgstr ""
2548
+ "要添加新的类型,你必须自定义 :mod:`optparse` 的 :class:`Option` 类的子类。 这个类包含几个用来定义 "
2549
+ ":mod:`optparse` 的类型的属性: :attr:`~Option.TYPES` 和 "
2550
+ ":attr:`~Option.TYPE_CHECKER`。"
2547
2551
2548
2552
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1860
2549
2553
msgid ""
2550
2554
"A tuple of type names; in your subclass, simply define a new tuple "
2551
2555
":attr:`TYPES` that builds on the standard one."
2552
- msgstr ""
2556
+ msgstr "一个由类型名称组成的元组;在你的子类中,简单地定义一个在标准元组基础上构建的新元组 :attr:`TYPES`。 "
2553
2557
2554
2558
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1865
2555
2559
msgid ""
2556
2560
"A dictionary mapping type names to type-checking functions. A type-checking"
2557
2561
" function has the following signature::"
2558
- msgstr ""
2562
+ msgstr "一个将类型名称映射到类型检查函数的字典。 类型检查函数具有如下签名:: "
2559
2563
2560
2564
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1870
2561
2565
msgid ""
You can’t perform that action at this time.
0 commit comments