@@ -11,7 +11,7 @@ msgid ""
1111msgstr ""
1212"Project-Id-Version : Python 3.10\n "
1313"Report-Msgid-Bugs-To : \n "
14- "POT-Creation-Date : 2024-07-19 16:03 +0000\n "
14+ "POT-Creation-Date : 2024-07-20 02:29 +0000\n "
1515"PO-Revision-Date : 2022-11-05 17:23+0000\n "
1616"
Last-Translator :
Rafael Fontenelle <[email protected] >, 2024\n "
1717"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -220,9 +220,9 @@ msgid ""
220220"objects of different incomparable types always compare unequal to each "
221221"other."
222222msgstr ""
223- "当操作数没有有意义的自然排序时 ,排序比较操作符 (``<``,``<=``,``>=``,``>``) 会引发 TypeError 异常。因此,像 "
224- "``1 < ''``, ``0 > None`` 或 ``len <= len`` 这样的表达式不再有效,例如 ``None < None`` 会引发 "
225- ":exc:`TypeError` 而不是返回 ``False``。 由此推论,对异构列表进行排序不再有意义 —— 所有元素必须相互可比。 "
223+ "当操作数不存在有意义的自然排序时 ,排序比较操作符 (``<``, ``<=``, ``>=``, ``>``) 会引发 TypeError 异常。 "
224+ "因此,像 ``1 < ''``, ``0 > None`` 或 ``len <= len`` 这样的表达式不再有效,例如 ``None < None``"
225+ " 会引发 :exc:`TypeError` 而不是返回 ``False``。 由此推论,对异构列表进行排序不再有意义 —— 所有元素必须相互可比。 "
226226"请注意,这不适用于 ``==`` 和 ``!=`` 操作符:不同的不可比类型的对象总是互不相等的。"
227227
228228#: ../../whatsnew/3.0.rst:195
@@ -243,7 +243,7 @@ msgid ""
243243"expression ``(a > b) - (a < b)`` as the equivalent for ``cmp(a, b)``.)"
244244msgstr ""
245245":func:`cmp` 函数应视为已不复存在,而 :meth:`__cmp__` 特殊方法也不再支持。 请使用 :meth:`__lt__` "
246- "进行排序,使用 :meth:`__eq__` 与 :meth:`__hash__` 进行比较,并根据需要使用其他丰富的比较方法 。 (如果确实需要 "
246+ "进行排序,使用 :meth:`__eq__` 与 :meth:`__hash__` 进行比较,并根据需要使用其他的丰富比较方法 。 (如果确实需要 "
247247":func:`cmp` 功能,可以使用表达式 ``(a > b) - (a < b)`` 以实现 ``cmp(a, b)``。)"
248248
249249#: ../../whatsnew/3.0.rst:207
@@ -256,13 +256,17 @@ msgid ""
256256"there is only one built-in integral type, named :class:`int`; but it behaves"
257257" mostly like the old :class:`long` type."
258258msgstr ""
259+ ":pep:`237`: 在实质上,:class:`long` 已被重命名为 :class:`int`。 也就是说,现在只有一种内置整数类型,叫做 "
260+ ":class:`int`;但其行为更像是旧的 :class:`long` 类型。"
259261
260262#: ../../whatsnew/3.0.rst:213
261263msgid ""
262264":pep:`238`: An expression like ``1/2`` returns a float. Use ``1//2`` to get"
263265" the truncating behavior. (The latter syntax has existed for years, at "
264266"least since Python 2.2.)"
265267msgstr ""
268+ ":pep:`238`: 像 ``1/2`` 这样的表达式将返回一个浮点数。 请使用 ``1//2`` 来得到取整的行为。 "
269+ "(后面这种语法已存在多年,至少从 Python 2.2 起就有了。)"
266270
267271#: ../../whatsnew/3.0.rst:217
268272msgid ""
@@ -329,7 +333,7 @@ msgstr ""
329333msgid ""
330334"You can no longer use ``u\" ...\" `` literals for Unicode text. However, you "
331335"must use ``b\" ...\" `` literals for binary data."
332- msgstr "对于 Unicode 文本,您不能再使用 ``u\" ...\" `` 字面量。但是,二进制数据必须使用 ``b\" ...\" `` 字面量 。"
336+ msgstr "你不能再使用 ``u\" ...\" `` 字面值来表示 Unicode 文本。 不过,你必须使用 ``b\" ...\" `` 字面值来表示二进制数据 。"
333337
334338#: ../../whatsnew/3.0.rst:261
335339msgid ""
0 commit comments