File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2532,10 +2532,11 @@ msgid ""
25322532"command-line options are the action and type of each option, the most likely"
25332533" direction of extension is to add new actions and new types."
25342534msgstr ""
2535+ "由于控制 :mod:`optparse` 如何读取命令行选项的两个主要因子是每个选项的动作和类型,所以扩展最可能的方向就是添加新的动作和新的类型。"
25352536
25362537#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1852
25372538msgid "Adding new types"
2538- msgstr ""
2539+ msgstr "添加新的类型 "
25392540
25402541#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1854
25412542msgid ""
@@ -2544,18 +2545,21 @@ msgid ""
25442545":mod:`optparse`'s types: :attr:`~Option.TYPES` and "
25452546":attr:`~Option.TYPE_CHECKER`."
25462547msgstr ""
2548+ "要添加新的类型,你必须自定义 :mod:`optparse` 的 :class:`Option` 类的子类。 这个类包含几个用来定义 "
2549+ ":mod:`optparse` 的类型的属性: :attr:`~Option.TYPES` 和 "
2550+ ":attr:`~Option.TYPE_CHECKER`。"
25472551
25482552#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1860
25492553msgid ""
25502554"A tuple of type names; in your subclass, simply define a new tuple "
25512555":attr:`TYPES` that builds on the standard one."
2552- msgstr ""
2556+ msgstr "一个由类型名称组成的元组;在你的子类中,简单地定义一个在标准元组基础上构建的新元组 :attr:`TYPES`。 "
25532557
25542558#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1865
25552559msgid ""
25562560"A dictionary mapping type names to type-checking functions. A type-checking"
25572561" function has the following signature::"
2558- msgstr ""
2562+ msgstr "一个将类型名称映射到类型检查函数的字典。 类型检查函数具有如下签名:: "
25592563
25602564#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1870
25612565msgid ""
You can’t perform that action at this time.
0 commit comments