Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commiteada4d7

Browse files
[po] auto sync
1 parent9ef854d commiteada4d7

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

‎library/optparse.po

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2612,7 +2612,7 @@ msgstr ""
26122612

26132613
#:/home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1904
26142614
msgid"Finally, the Option subclass::"
2615-
msgstr""
2615+
msgstr"最后,是 Option 子类::"
26162616

26172617
#:/home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1911
26182618
msgid""
@@ -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.)"
26232623
msgstr""
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
26262629
msgid""
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::"
26302633
msgstr""
2634+
"就是这样! 现在你可以编写一个脚本以与其他基于 :mod:`optparse` 的脚本相同的方式使用新的选项类型,除了你必须指示你的 "
2635+
"OptionParser 使用 MyOption 而不是 Option::"
26312636

26322637
#:/home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1923
26332638
msgid""
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::"
26372642
msgstr""
2643+
"作为替代选择,你可以构建你自己的选项列表并将它传给 OptionParser;如果你不是以上述方式使用 "
2644+
":meth:`add_option`,则你不需要告诉 OptionParser 使用哪个选项类::"
26382645

26392646
#:/home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1934
26402647
msgid"Adding new actions"
2641-
msgstr""
2648+
msgstr"添加新的动作"
26422649

26432650
#:/home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1936
26442651
msgid""
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
26502657
msgid"\"store\" actions"
2651-
msgstr""
2658+
msgstr"\"store\" 类动作"
26522659

26532660
#:/home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1940
26542661
msgid""
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."
26582665
msgstr""
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
26612670
msgid"\"typed\" actions"
2662-
msgstr""
2671+
msgstr"\"typed\" 类动作"
26632672

26642673
#:/home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1945
26652674
msgid""
@@ -2668,6 +2677,8 @@ msgid ""
26682677
"These options require a :attr:`~Option.type` attribute to the Option "
26692678
"constructor."
26702679
msgstr""
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
26732684
msgid""

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp