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

Commit9e9e9ff

Browse files
[po] auto sync
1 parenta423dc0 commit9e9e9ff

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

‎library/optparse.po

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2398,50 +2398,51 @@ msgstr "下面是一个不接受任何参数,只是简单地记录所遇见的
23982398

23992399
#:/home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1696
24002400
msgid"Of course, you could do that with the ``\"store_true\"`` action."
2401-
msgstr""
2401+
msgstr"当然,你也可以使用 ``\"store_true\"`` 动作做到这一点。"
24022402

24032403
#:/home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1702
24042404
msgid"Callback example 2: check option order"
2405-
msgstr""
2405+
msgstr"回调示例 2:检查选项顺序"
24062406

24072407
#:/home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1704
24082408
msgid""
24092409
"Here's a slightly more interesting example: record the fact that ``-a`` is "
24102410
"seen, but blow up if it comes after ``-b`` in the command-line. ::"
2411-
msgstr""
2411+
msgstr"下面是一个更有趣些的示例:当看到 ``-a`` 出现时将会记录,而如果它在命令行中出现于 ``-b`` 之后则将报告错误。 ::"
24122412

24132413
#:/home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1719
24142414
msgid"Callback example 3: check option order (generalized)"
2415-
msgstr""
2415+
msgstr"回调示例 3:检查选项顺序(通用)"
24162416

24172417
#:/home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1721
24182418
msgid""
24192419
"If you want to re-use this callback for several similar options (set a flag,"
24202420
" but blow up if ``-b`` has already been seen), it needs a bit of work: the "
24212421
"error message and the flag that it sets must be generalized. ::"
24222422
msgstr""
2423+
"如果你希望为多个类似的选项重用此回调(设置旗标,而在看到 ``-b`` 出现时触发),则需要一些额外工作:它设置的错误消息和旗标必须进行通用化。 ::"
24232424

24242425
#:/home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1738
24252426
msgid"Callback example 4: check arbitrary condition"
2426-
msgstr""
2427+
msgstr"回调示例 4:检查任意条件"
24272428

24282429
#:/home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1740
24292430
msgid""
24302431
"Of course, you could put any condition in there---you're not limited to "
24312432
"checking the values of already-defined options. For example, if you have "
24322433
"options that should not be called when the moon is full, all you have to do "
24332434
"is this::"
2434-
msgstr""
2435+
msgstr"当然,你可以设置任何条件 --- 并不限于检查已定义选项的值。 举例来说,如果你有一个不应当在满月时被调用的选项,你就可以这样做::"
24352436

24362437
#:/home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1753
24372438
msgid""
24382439
"(The definition of ``is_moon_full()`` is left as an exercise for the "
24392440
"reader.)"
2440-
msgstr""
2441+
msgstr"(定义 ``is_moon_full()`` 的任务将作为留给读者的练习。)"
24412442

24422443
#:/home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1759
24432444
msgid"Callback example 5: fixed arguments"
2444-
msgstr""
2445+
msgstr"回调示例 5:固定的参数"
24452446

24462447
#:/home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1761
24472448
msgid""

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp