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

Commit5e60a84

Browse files
[po] auto sync
1 parentf20eef1 commit5e60a84

File tree

2 files changed

+22
-4
lines changed

2 files changed

+22
-4
lines changed

‎.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation":"81.46%","updated_at":"2025-04-24T15:55:54Z"}
1+
{"translation":"81.47%","updated_at":"2025-04-25T01:19:51Z"}

‎whatsnew/3.0.po

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -812,19 +812,23 @@ msgid ""
812812
"corresponding sections in :ref:`whats-new-in-2.6` should be consulted for "
813813
"longer descriptions."
814814
msgstr""
815+
"由于许多用户可能会直接从 Python 2.5 跳到 Python 3.0,因此本节提醒读者注意最初为 Python 3.0 设计但后来移植到 "
816+
"Python 2.6 的新特性。 如需更详细的说明请参阅 :ref:`whats-new-in-2.6` 中的相应章节。"
815817

816818
#:../../whatsnew/3.0.rst:488
817819
msgid""
818820
":ref:`pep-0343`. The :keyword:`with` statement is now a standard feature "
819821
"and no longer needs to be imported from the :mod:`__future__`. Also check "
820822
"out :ref:`new-26-context-managers` and :ref:`new-module-contextlib`."
821823
msgstr""
824+
":ref:`pep-0343`。 现在 :keyword:`with` 语句已是一个标准特性而不再需要从 :mod:`__future__` 导入。 "
825+
"另请参阅 :ref:`new-26-context-managers` 和 :ref:`new-module-contextlib`。"
822826

823827
#:../../whatsnew/3.0.rst:493
824828
msgid""
825829
":ref:`pep-0366`. This enhances the usefulness of the :option:`-m` option "
826830
"when the referenced module lives in a package."
827-
msgstr""
831+
msgstr":ref:`pep-0366`。 这增强了 :option:`-m` 选项在被引用的模块位于包中时的实用性。"
828832

829833
#:../../whatsnew/3.0.rst:496
830834
msgid":ref:`pep-0370`."
@@ -843,26 +847,33 @@ msgid ""
843847
"API for string formatting, and to start deprecating the ``%`` operator in "
844848
"Python 3.1."
845849
msgstr""
850+
":ref:`pep-3101`。 注意:2.6 说明文档提到 :meth:`format` 方法同时适用于 8 位和 Unicode 字符串。 在 "
851+
"3.0 中,只有 :class:`str` 类型(带有 Unicode 支持的文本字符串)才支持此方法;:class:`bytes` 类型并不支持。 "
852+
"最终的计划是使其成为仅针对字符串格式化的 API,并在 Python 3.1 中开始弃用 ``%`` 字符串运算符。"
846853

847854
#:../../whatsnew/3.0.rst:507
848855
msgid""
849856
":ref:`pep-3105`. This is now a standard feature and no longer needs to be "
850857
"imported from :mod:`__future__`. More details were given above."
851-
msgstr""
858+
msgstr":ref:`pep-3105`。 现在这已是一个标准特性而不再需要从 :mod:`__future__` 导入。 更多详情见上文。"
852859

853860
#:../../whatsnew/3.0.rst:510
854861
msgid""
855862
":ref:`pep-3110`. The :keyword:`except` *exc* :keyword:`!as` *var* syntax is"
856863
" now standard and :keyword:`!except` *exc*, *var* is no longer supported. "
857864
"(Of course, the :keyword:`!as` *var* part is still optional.)"
858865
msgstr""
866+
":ref:`pep-3110`。 现在 :keyword:`except` *exc* :keyword:`!as` *var* 语法已成为标准而 "
867+
":keyword:`!except` *exc*, *var* 不再受到支持。 (当然,:keyword:`!as` *var* 部分仍为可选项。)"
859868

860869
#:../../whatsnew/3.0.rst:515
861870
msgid""
862871
":ref:`pep-3112`. The ``b\"...\"`` string literal notation (and its variants"
863872
" like ``b'...'``, ``b\"\"\"...\"\"\"``, and ``br\"...\"``) now produces a "
864873
"literal of type :class:`bytes`."
865874
msgstr""
875+
":ref:`pep-3112`。 现在 ``b\"...\"`` 字节串字面值标记法(及其变化形式如 ``b'...'``, "
876+
"``b\"\"\"...\"\"\"`` 和 ``br\"...\"`` 等将产生 :class:`bytes` 类型的字面值。"
866877

867878
#:../../whatsnew/3.0.rst:519
868879
msgid""
@@ -875,6 +886,11 @@ msgid ""
875886
"beware that the text object maintains a buffer of itself in order to speed "
876887
"up the encoding and decoding operations)."
877888
msgstr""
889+
":ref:`pep-3116`。 :mod:`io` 模块现在是执行文件 I/O 的标准方式。 内置的 :func:`open` 函数现在是 "
890+
":func:`io.open` 的别名并增加了额外的关键字参数 *encoding*, *errors*, *newline* 和 *closefd*。"
891+
" 还请注意无效的 *mode* 参数现在会引发 :exc:`ValueError`,而不是 :exc:`IOError`。 "
892+
"在文本文件对象之下的二进制文件对象可作为 :attr:`!f.buffer` "
893+
"来访问(但要记住文本对象会为自己保留一个缓冲区以加快编码和解码操作的速度)。"
878894

879895
#:../../whatsnew/3.0.rst:529
880896
msgid""
@@ -908,6 +924,8 @@ msgid ""
908924
"defining Python's\"numeric tower\". Also note the new :mod:`fractions` "
909925
"module which implements :class:`numbers.Rational`."
910926
msgstr""
927+
":ref:`pep-3141`。 :mod:`numbers` 模块是 ABC 的另一个新用例,它定义了 Python 的“数字层级塔”。 另请注意新的"
928+
" :mod:`fractions` 模块,它实现了 :class:`numbers.Rational`。"
911929

912930
#:../../whatsnew/3.0.rst:551
913931
msgid"Library Changes"
@@ -1533,4 +1551,4 @@ msgstr ""
15331551
#:../../whatsnew/3.0.rst:929
15341552
msgid""
15351553
"For porting C extensions to Python 3.0, please see :ref:`cporting-howto`."
1536-
msgstr""
1554+
msgstr"有关如何将 C 扩展移植到 Python 3.0,请参阅 :ref:`cporting-howto`。"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp