@@ -12,7 +12,7 @@ msgid ""
1212msgstr ""
1313"Project-Id-Version :Python 3.14\n "
1414"Report-Msgid-Bugs-To :\n "
15- "POT-Creation-Date :2025-11-03 14:20 +0000\n "
15+ "POT-Creation-Date :2025-11-05 14:15 +0000\n "
1616"PO-Revision-Date :2025-09-16 00:02+0000\n "
1717"Last-Translator :Freesand Leo <yuqinju@163.com>, 2025\n "
1818"Language-Team :Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -1996,6 +1996,10 @@ msgid ""
19961996"streams of data. The :class:`~io.BytesIO` class supports reading, writing, "
19971997"and seeking over an in-memory buffer."
19981998msgstr ""
1999+ "有五个具体类实现了这个 ABC. :class:`~io.BufferedWriter` 和 :class:`~io.BufferedReader` "
2000+ "用于具有针对随机访问的 :meth:`~io.IOBase.seek` 方法的支持只写或只读使用的对象。 "
2001+ ":class:`~io.BufferedRandom` 对象支持对相同下层流的读写访问,而 :class:`~io.BufferedRWPair` "
2002+ "用于像 TTY 这样同时具有针对未连接数据流的读写操作。 :class:`~io.BytesIO` 类支持在内存缓冲区上进行读取、写入和定位操作。"
19992003
20002004#: ../../whatsnew/2.6.rst:1082
20012005msgid ""
@@ -2004,6 +2008,9 @@ msgid ""
20042008":term:`universal newlines`. :class:`~io.TextIOBase` defines the "
20052009":meth:`readline` method and supports iteration upon objects."
20062010msgstr ""
2011+ ":class:`~io.TextIOBase`: 提供用于读写字符串的函数(记住,在 Python 3.0 中字符串将为 Unicode),并支持 "
2012+ ":term:`universal newlines`。 :class:`~io.TextIOBase` 定义了 :meth:`readline` "
2013+ "方法并支持迭代对象。"
20072014
20082015#: ../../whatsnew/2.6.rst:1088
20092016msgid ""
@@ -2013,6 +2020,9 @@ msgid ""
20132020"object. :class:`~io.StringIO` simply buffers everything in memory without "
20142021"ever writing anything to disk."
20152022msgstr ""
2023+ "有两个具体实现。 :class:`~io.TextIOWrapper` 包装了一个缓冲 I/O 对象,支持所有文本 I/O 方法并增加 "
2024+ ":attr:`~io.TextIOBase.buffer` 属性用于访问下层对象。 :class:`~io.StringIO` "
2025+ "简单地在内存中缓冲所有内容而不会将其写入磁盘。"
20162026
20172027#: ../../whatsnew/2.6.rst:1094
20182028msgid ""
@@ -2194,6 +2204,7 @@ msgid ""
21942204"ABC and instead register the class by calling the ABC's "
21952205":meth:`~abc.ABCMeta.register` method::"
21962206msgstr ""
2207+ "作为替代,你编写的类可以不从期望的 ABC 派生而是通过调用 ABC 的 :meth:`~abc.ABCMeta.register` 方法来注册该类::"
21972208
21982209#: ../../whatsnew/2.6.rst:1211
21992210msgid ""
@@ -2219,6 +2230,9 @@ msgid ""
22192230"that some third-party class implements an ABC. For example, if you defined a"
22202231" :class:`!PrintableType` ABC, it's legal to do::"
22212232msgstr ""
2233+ "对于你编写的类,从 ABC 派生可能会更清晰一些。 :meth:`~abc.ABCMeta.register` "
2234+ "方法适用于当你编写能够描述现有类型或类的新 ABC,或是当你想要声明某个实现特定 ABC 的第三方类的场合。 举例来说,如果你定义了一个 "
2235+ ":class:`!PrintableType` ABC,这样做就是可以的::"
22222236
22232237#: ../../whatsnew/2.6.rst:1225
22242238msgid ""
@@ -2320,6 +2334,9 @@ msgid ""
23202334":meth:`!draw` is necessary, though; the ABC can't provide a useful generic "
23212335"implementation."
23222336msgstr ""
2337+ "在上面的 :class:`!Drawable` ABC 中,:meth:`!draw_doubled` 方法以两倍大小渲染对象并可依据 "
2338+ ":class:`!Drawable` 描述的其他方法来实现。 因此实现此 ABC 的类不需要提供自己的 :meth:`!draw_doubled` "
2339+ "实现,尽管它们可以这样做。 不过,必须要有一个 :meth:`!draw` 的实现,ABC 无法提供可用的泛型实现。"
23232340
23242341#: ../../whatsnew/2.6.rst:1277
23252342msgid ""
@@ -2329,6 +2346,8 @@ msgid ""
23292346"raised when you actually try to create an instance of a subclass lacking the"
23302347" method::"
23312348msgstr ""
2349+ "你可以将 :deco:`~abc.abstractmethod` 装饰器应用于必须实现的方法如 :meth:`!draw`;那么 Python "
2350+ "将针对未定义该方法的类引发异常。 请注意只有在你实际尝试创建缺少该方法的子类的实例时异常才会被引发::"
23322351
23332352#: ../../whatsnew/2.6.rst:1283
23342353msgid ""