@@ -2612,7 +2612,7 @@ msgstr ""
26122612
26132613#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1904
26142614msgid "Finally, the Option subclass::"
2615- msgstr ""
2615+ msgstr "最后,是 Option 子类:: "
26162616
26172617#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1911
26182618msgid ""
@@ -2621,45 +2621,54 @@ msgid ""
26212621":mod:`optparse`'s Option class. This being Python, nothing stops you from "
26222622"doing that except good manners and common sense.)"
26232623msgstr ""
2624+ "(如果我们不对 :attr:`Option.TYPE_CHECKER` 执行 :func:`copy`,我们就将修改 :mod:`optparse` 的"
2625+ " Option 类的 :attr:`~Option.TYPE_CHECKER` 属性。 Python "
2626+ "就是这样,除了礼貌和常识以外没有任何东西能阻止你这样做。)"
26242627
26252628#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1916
26262629msgid ""
26272630"That's it! Now you can write a script that uses the new option type just "
26282631"like any other :mod:`optparse`\\ -based script, except you have to instruct "
26292632"your OptionParser to use MyOption instead of Option::"
26302633msgstr ""
2634+ "就是这样! 现在你可以编写一个脚本以与其他基于 :mod:`optparse` 的脚本相同的方式使用新的选项类型,除了你必须指示你的 "
2635+ "OptionParser 使用 MyOption 而不是 Option::"
26312636
26322637#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1923
26332638msgid ""
26342639"Alternately, you can build your own option list and pass it to OptionParser;"
26352640" if you don't use :meth:`add_option` in the above way, you don't need to "
26362641"tell OptionParser which option class to use::"
26372642msgstr ""
2643+ "作为替代选择,你可以构建你自己的选项列表并将它传给 OptionParser;如果你不是以上述方式使用 "
2644+ ":meth:`add_option`,则你不需要告诉 OptionParser 使用哪个选项类::"
26382645
26392646#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1934
26402647msgid "Adding new actions"
2641- msgstr ""
2648+ msgstr "添加新的动作 "
26422649
26432650#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1936
26442651msgid ""
26452652"Adding new actions is a bit trickier, because you have to understand that "
26462653":mod:`optparse` has a couple of classifications for actions:"
2647- msgstr ""
2654+ msgstr "添加新的动作有一点复杂,因为你必须理解 :mod:`optparse` 对于动作有几种分类: "
26482655
26492656#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1942
26502657msgid "\" store\" actions"
2651- msgstr ""
2658+ msgstr "\" store \" 类动作 "
26522659
26532660#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1940
26542661msgid ""
26552662"actions that result in :mod:`optparse` storing a value to an attribute of "
26562663"the current OptionValues instance; these options require a "
26572664":attr:`~Option.dest` attribute to be supplied to the Option constructor."
26582665msgstr ""
2666+ "会使得 :mod:`optparse` 将某个值保存到当前 OptionValues 实例的特定属性中的动作;这些选项要求向 Option "
2667+ "构造器提供一个 :attr:`~Option.dest` 属性。attribute to be supplied to the constructor."
26592668
26602669#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1948
26612670msgid "\" typed\" actions"
2662- msgstr ""
2671+ msgstr "\" typed \" 类动作 "
26632672
26642673#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1945
26652674msgid ""
@@ -2668,6 +2677,8 @@ msgid ""
26682677"These options require a :attr:`~Option.type` attribute to the Option "
26692678"constructor."
26702679msgstr ""
2680+ "从命令行接受某个值并预期它是一个特定类型;或者更准确地说,是可被转换为一个特定类型的字符串的动作。 这些选项要求向 Option 构造器提供一个 "
2681+ ":attr:`~Option.type` 属性。attribute to the constructor."
26712682
26722683#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1950
26732684msgid ""