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

Commiteff3b53

Browse files
[po] auto sync
1 parent048b6e9 commiteff3b53

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

‎library/optparse.po

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1755,51 +1755,60 @@ msgid ""
17551755
":attr:`~Option.help` options, you will rarely create ``version`` options, "
17561756
"since :mod:`optparse` automatically adds them when needed."
17571757
msgstr""
1758+
"将提供给 OptionParser 的版本号打印到 stdout 并退出。 该版本号实际上是由 OptionParser 的 "
1759+
"``print_version()`` 方法进行格式化并打印的。 这通常只在向 OptionParser 构造器提供了 ``version`` "
1760+
"参数时才有意义。 与 :attr:`~Option.help` 选项类似,你很少会创建 ``version`` 选项,因为 "
1761+
":mod:`optparse` 会在需要时自动添加它们。"
17581762

17591763
#:/home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1284
17601764
msgid"Standard option types"
1761-
msgstr""
1765+
msgstr"标准选项类型"
17621766

17631767
#:/home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1286
17641768
msgid""
17651769
":mod:`optparse` has five built-in option types: ``\"string\"``, ``\"int\"``,"
17661770
" ``\"choice\"``, ``\"float\"`` and ``\"complex\"``. If you need to add new "
17671771
"option types, see section :ref:`optparse-extending-optparse`."
17681772
msgstr""
1773+
":mod:`optparse` 有五种内置选项类型: ``\"string\"``, ``\"int\"``, ``\"choice\"``, "
1774+
"``\"float\"`` 和 ``\"complex\"``。 如果你需要添加新的选项类型,请参阅 :ref:`optparse-extending-"
1775+
"optparse` 一节。"
17691776

17701777
#:/home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1290
17711778
msgid""
17721779
"Arguments to string options are not checked or converted in any way: the "
17731780
"text on the command line is stored in the destination (or passed to the "
17741781
"callback) as-is."
1775-
msgstr""
1782+
msgstr"传给 string 类型选项的参数不会以任何方式进行检查或转换:命令行中的文本将被原样保存至目标(或传给回调)。"
17761783

17771784
#:/home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1293
17781785
msgid"Integer arguments (type ``\"int\"``) are parsed as follows:"
1779-
msgstr""
1786+
msgstr"整数参数 (``\"int\"`` 类型) 将以如下方式解析:"
17801787

17811788
#:/home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1295
17821789
msgid"if the number starts with ``0x``, it is parsed as a hexadecimal number"
1783-
msgstr""
1790+
msgstr"如果数字开头为 ``0x``,它将被解析为十六进制数"
17841791

17851792
#:/home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1297
17861793
msgid"if the number starts with ``0``, it is parsed as an octal number"
1787-
msgstr""
1794+
msgstr"如果数字开头为 ``0``,它将被解析为八进制数"
17881795

17891796
#:/home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1299
17901797
msgid"if the number starts with ``0b``, it is parsed as a binary number"
1791-
msgstr""
1798+
msgstr"如果数字开头为 ``0b``,它将被解析为二进制数"
17921799

17931800
#:/home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1301
17941801
msgid"otherwise, the number is parsed as a decimal number"
1795-
msgstr""
1802+
msgstr"在其他情况下,数字将被解析为十进制数"
17961803

17971804
#:/home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1304
17981805
msgid""
17991806
"The conversion is done by calling :func:`int` with the appropriate base (2, "
18001807
"8, 10, or 16). If this fails, so will :mod:`optparse`, although with a more"
18011808
" useful error message."
18021809
msgstr""
1810+
"转换操作是通过调用 :func:`int` 并传入适当的 base (2, 8, 10 或 16) 来完成的。 如果转换失败, "
1811+
":mod:`optparse` 也将失败,但它会附带更有用的错误消息。"
18031812

18041813
#:/home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1308
18051814
msgid""

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp