@@ -2612,7 +2612,7 @@ msgstr ""
2612
2612
2613
2613
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1904
2614
2614
msgid "Finally, the Option subclass::"
2615
- msgstr ""
2615
+ msgstr "最后,是 Option 子类:: "
2616
2616
2617
2617
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1911
2618
2618
msgid ""
@@ -2621,45 +2621,54 @@ msgid ""
2621
2621
":mod:`optparse`'s Option class. This being Python, nothing stops you from "
2622
2622
"doing that except good manners and common sense.)"
2623
2623
msgstr ""
2624
+ "(如果我们不对 :attr:`Option.TYPE_CHECKER` 执行 :func:`copy`,我们就将修改 :mod:`optparse` 的"
2625
+ " Option 类的 :attr:`~Option.TYPE_CHECKER` 属性。 Python "
2626
+ "就是这样,除了礼貌和常识以外没有任何东西能阻止你这样做。)"
2624
2627
2625
2628
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1916
2626
2629
msgid ""
2627
2630
"That's it! Now you can write a script that uses the new option type just "
2628
2631
"like any other :mod:`optparse`\\ -based script, except you have to instruct "
2629
2632
"your OptionParser to use MyOption instead of Option::"
2630
2633
msgstr ""
2634
+ "就是这样! 现在你可以编写一个脚本以与其他基于 :mod:`optparse` 的脚本相同的方式使用新的选项类型,除了你必须指示你的 "
2635
+ "OptionParser 使用 MyOption 而不是 Option::"
2631
2636
2632
2637
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1923
2633
2638
msgid ""
2634
2639
"Alternately, you can build your own option list and pass it to OptionParser;"
2635
2640
" if you don't use :meth:`add_option` in the above way, you don't need to "
2636
2641
"tell OptionParser which option class to use::"
2637
2642
msgstr ""
2643
+ "作为替代选择,你可以构建你自己的选项列表并将它传给 OptionParser;如果你不是以上述方式使用 "
2644
+ ":meth:`add_option`,则你不需要告诉 OptionParser 使用哪个选项类::"
2638
2645
2639
2646
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1934
2640
2647
msgid "Adding new actions"
2641
- msgstr ""
2648
+ msgstr "添加新的动作 "
2642
2649
2643
2650
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1936
2644
2651
msgid ""
2645
2652
"Adding new actions is a bit trickier, because you have to understand that "
2646
2653
":mod:`optparse` has a couple of classifications for actions:"
2647
- msgstr ""
2654
+ msgstr "添加新的动作有一点复杂,因为你必须理解 :mod:`optparse` 对于动作有几种分类: "
2648
2655
2649
2656
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1942
2650
2657
msgid "\" store\" actions"
2651
- msgstr ""
2658
+ msgstr "\" store \" 类动作 "
2652
2659
2653
2660
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1940
2654
2661
msgid ""
2655
2662
"actions that result in :mod:`optparse` storing a value to an attribute of "
2656
2663
"the current OptionValues instance; these options require a "
2657
2664
":attr:`~Option.dest` attribute to be supplied to the Option constructor."
2658
2665
msgstr ""
2666
+ "会使得 :mod:`optparse` 将某个值保存到当前 OptionValues 实例的特定属性中的动作;这些选项要求向 Option "
2667
+ "构造器提供一个 :attr:`~Option.dest` 属性。attribute to be supplied to the constructor."
2659
2668
2660
2669
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1948
2661
2670
msgid "\" typed\" actions"
2662
- msgstr ""
2671
+ msgstr "\" typed \" 类动作 "
2663
2672
2664
2673
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1945
2665
2674
msgid ""
@@ -2668,6 +2677,8 @@ msgid ""
2668
2677
"These options require a :attr:`~Option.type` attribute to the Option "
2669
2678
"constructor."
2670
2679
msgstr ""
2680
+ "从命令行接受某个值并预期它是一个特定类型;或者更准确地说,是可被转换为一个特定类型的字符串的动作。 这些选项要求向 Option 构造器提供一个 "
2681
+ ":attr:`~Option.type` 属性。attribute to the constructor."
2671
2682
2672
2683
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1950
2673
2684
msgid ""