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

Commitc6176e7

Browse files
[po] auto sync
1 parent5cb2d54 commitc6176e7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

‎library/optparse.po

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2571,6 +2571,10 @@ msgid ""
25712571
" by :meth:`OptionParser.parse_args`, or be passed to a callback as the "
25722572
"``value`` parameter."
25732573
msgstr""
2574+
"其中 ``option`` 是一个 :class:`Option` 实例,``opt`` 是一个选项字符串 (例如 ``-f``),而 "
2575+
"``value`` 是来自命令行的必须被检查并转换为你想要的类型的字符串。 ``check_mytype()`` 应当返回假设的类型 "
2576+
"``mytype`` 的对象。 类型检查函数所返回的值将最终出现在 :meth:`OptionParser.parse_args` 所返回的 "
2577+
"OptionValues 实例中,或是作为 ``value`` 形参传给一个回调。"
25742578

25752579
#:/home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1878
25762580
msgid""
@@ -2581,6 +2585,9 @@ msgid ""
25812585
"``\"error:\"`` and prints everything to stderr before terminating the "
25822586
"process."
25832587
msgstr""
2588+
"如果你的类型检查函数遇到任何问题则应当引发 :exc:`OptionValueError`。 :exc:`OptionValueError` "
2589+
"接受一个字符串参数,该参数将被原样传递给 :class:`OptionParser` 的 :meth:`error` "
2590+
"方法,该方法将随后附加程序名称和字符串 ``\"error:\"`` 并在终结进程之前将所有信息打印到 stderr。"
25842591

25852592
#:/home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1884
25862593
msgid""

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp