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

Commitb3a7050

Browse files
[po] auto sync
1 parent9e9e9ff commitb3a7050

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

‎library/optparse.po

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2454,21 +2454,27 @@ msgid ""
24542454
":attr:`~Option.nargs`, then the option takes :attr:`~Option.nargs` "
24552455
"arguments."
24562456
msgstr""
2457+
"当你定义接受固定数量参数的 callback 选项时情况会变得更有趣一点。 指定一个 callback 选项接受参数的操作类似于定义一个 "
2458+
"``\"store\"`` 或 ``\"append\"`` 选项:如果你定义 "
2459+
":attr:`~Option.type`,那么该选项将接受一个必须可被转换为相应类型的参数;如果你进一步定义 "
2460+
":attr:`~Option.nargs`,那么该选项将接受 :attr:`~Option.nargs` 个参数。"
24572461

24582462
#:/home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1768
24592463
msgid"Here's an example that just emulates the standard ``\"store\"`` action::"
2460-
msgstr""
2464+
msgstr"下面是一个模拟了标准 ``\"store\"`` 动作的示例::"
24612465

24622466
#:/home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1777
24632467
msgid""
24642468
"Note that :mod:`optparse` takes care of consuming 3 arguments and converting"
24652469
" them to integers for you; all you have to do is store them. (Or whatever; "
24662470
"obviously you don't need a callback for this example.)"
24672471
msgstr""
2472+
"请注意 :mod:`optparse` 将为你读取 3 个参数并将它们转换为整数;你所要做的只是保存它们。 "
2473+
"(或任何其他操作;对于这个示例显然你不需要使用回调。)"
24682474

24692475
#:/home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1785
24702476
msgid"Callback example 6: variable arguments"
2471-
msgstr""
2477+
msgstr"回调示例 6:可变的参数"
24722478

24732479
#:/home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1787
24742480
msgid""

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp