@@ -17,7 +17,7 @@ msgid ""
1717msgstr ""
1818"Project-Id-Version : Python 3.8\n "
1919"Report-Msgid-Bugs-To : \n "
20- "POT-Creation-Date : 2020-03-04 12:51 +0000\n "
20+ "POT-Creation-Date : 2020-05-21 14:01 +0000\n "
2121"PO-Revision-Date : 2017-02-16 23:03+0000\n "
2222"
Last-Translator :
Jian Aijun <[email protected] >, 2020\n "
2323"Language-Team : Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -1274,11 +1274,11 @@ msgid ""
12741274":func:`functools.lru_cache`::"
12751275msgstr "一个 :class:`OrderedDict` 对于实现 :func:`functools.lru_cache` 的变体也很有用::"
12761276
1277- #: ../../library/collections.rst:1160
1277+ #: ../../library/collections.rst:1162
12781278msgid ":class:`UserDict` objects"
12791279msgstr ":class:`UserDict` 对象"
12801280
1281- #: ../../library/collections.rst:1162
1281+ #: ../../library/collections.rst:1164
12821282msgid ""
12831283"The class, :class:`UserDict` acts as a wrapper around dictionary objects. "
12841284"The need for this class has been partially supplanted by the ability to "
@@ -1288,7 +1288,7 @@ msgstr ""
12881288":class:`UserDict` 类是用作字典对象的外包装。对这个类的需求已部分由直接创建 :class:`dict` "
12891289"的子类的功能所替代;不过,这个类处理起来更容易,因为底层的字典可以作为属性来访问。"
12901290
1291- #: ../../library/collections.rst:1170
1291+ #: ../../library/collections.rst:1172
12921292msgid ""
12931293"Class that simulates a dictionary. The instance's contents are kept in a "
12941294"regular dictionary, which is accessible via the :attr:`data` attribute of "
@@ -1299,22 +1299,22 @@ msgstr ""
12991299"模拟一个字典类。这个实例的内容保存为一个正常字典, 可以通过 :class:`UserDict` 实例的 :attr:`data` 属性存取。如果提供了"
13001300" *initialdata* 值, :attr:`data` 就被初始化为它的内容;注意一个 *initialdata* 的引用不会被保留作为其他用途。"
13011301
1302- #: ../../library/collections.rst:1176
1302+ #: ../../library/collections.rst:1178
13031303msgid ""
13041304"In addition to supporting the methods and operations of mappings, "
13051305":class:`UserDict` instances provide the following attribute:"
13061306msgstr ":class:`UserDict` 实例提供了以下属性作为扩展方法和操作的支持:"
13071307
1308- #: ../../library/collections.rst:1181
1308+ #: ../../library/collections.rst:1183
13091309msgid ""
13101310"A real dictionary used to store the contents of the :class:`UserDict` class."
13111311msgstr "一个真实的字典,用于保存 :class:`UserDict` 类的内容。"
13121312
1313- #: ../../library/collections.rst:1187
1313+ #: ../../library/collections.rst:1189
13141314msgid ":class:`UserList` objects"
13151315msgstr ":class:`UserList` 对象"
13161316
1317- #: ../../library/collections.rst:1189
1317+ #: ../../library/collections.rst:1191
13181318msgid ""
13191319"This class acts as a wrapper around list objects. It is a useful base class"
13201320" for your own list-like classes which can inherit from them and override "
@@ -1323,15 +1323,15 @@ msgid ""
13231323msgstr ""
13241324"这个类封装了列表对象。它是一个有用的基础类,对于你想自定义的类似列表的类,可以继承和覆盖现有的方法,也可以添加新的方法。这样我们可以对列表添加新的行为。"
13251325
1326- #: ../../library/collections.rst:1194
1326+ #: ../../library/collections.rst:1196
13271327msgid ""
13281328"The need for this class has been partially supplanted by the ability to "
13291329"subclass directly from :class:`list`; however, this class can be easier to "
13301330"work with because the underlying list is accessible as an attribute."
13311331msgstr ""
13321332"对这个类的需求已部分由直接创建 :class:`list` 的子类的功能所替代;不过,这个类处理起来更容易,因为底层的列表可以作为属性来访问。"
13331333
1334- #: ../../library/collections.rst:1200
1334+ #: ../../library/collections.rst:1202
13351335msgid ""
13361336"Class that simulates a list. The instance's contents are kept in a regular "
13371337"list, which is accessible via the :attr:`data` attribute of "
@@ -1343,19 +1343,19 @@ msgstr ""
13431343"属性存取。实例内容被初始化为一个 *list* 的copy,默认为 ``[]`` 空列表。 *list* "
13441344"可以是迭代对象,比如一个Python列表,或者一个 :class:`UserList` 对象。"
13451345
1346- #: ../../library/collections.rst:1206
1346+ #: ../../library/collections.rst:1208
13471347msgid ""
13481348"In addition to supporting the methods and operations of mutable sequences, "
13491349":class:`UserList` instances provide the following attribute:"
13501350msgstr ":class:`UserList` 提供了以下属性作为可变序列的方法和操作的扩展:"
13511351
1352- #: ../../library/collections.rst:1211
1352+ #: ../../library/collections.rst:1213
13531353msgid ""
13541354"A real :class:`list` object used to store the contents of the "
13551355":class:`UserList` class."
13561356msgstr "一个 :class:`list` 对象用于存储 :class:`UserList` 的内容。"
13571357
1358- #: ../../library/collections.rst:1214
1358+ #: ../../library/collections.rst:1216
13591359msgid ""
13601360"**Subclassing requirements:** Subclasses of :class:`UserList` are expected "
13611361"to offer a constructor which can be called with either no arguments or one "
@@ -1367,19 +1367,19 @@ msgstr ""
13671367"**子类化的要求:** :class:`UserList` "
13681368"的子类需要提供一个构造器,可以无参数调用,或者一个参数调用。返回一个新序列的列表操作需要创建一个实现类的实例。它假定了构造器可以以一个参数进行调用,这个参数是一个序列对象,作为数据源。"
13691369
1370- #: ../../library/collections.rst:1221
1370+ #: ../../library/collections.rst:1223
13711371msgid ""
13721372"If a derived class does not wish to comply with this requirement, all of the"
13731373" special methods supported by this class will need to be overridden; please "
13741374"consult the sources for information about the methods which need to be "
13751375"provided in that case."
13761376msgstr "如果一个分离的类不希望依照这个需求,所有的特殊方法就必须重写;请参照源代码进行修改。"
13771377
1378- #: ../../library/collections.rst:1227
1378+ #: ../../library/collections.rst:1229
13791379msgid ":class:`UserString` objects"
13801380msgstr ":class:`UserString` 对象"
13811381
1382- #: ../../library/collections.rst:1229
1382+ #: ../../library/collections.rst:1231
13831383msgid ""
13841384"The class, :class:`UserString` acts as a wrapper around string objects. The "
13851385"need for this class has been partially supplanted by the ability to subclass"
@@ -1389,7 +1389,7 @@ msgstr ""
13891389":class:`UserString` 类是用作字符串对象的外包装。对这个类的需求已部分由直接创建 :class:`str` "
13901390"的子类的功能所替代;不过,这个类处理起来更容易,因为底层的字符串可以作为属性来访问。"
13911391
1392- #: ../../library/collections.rst:1237
1392+ #: ../../library/collections.rst:1239
13931393msgid ""
13941394"Class that simulates a string object. The instance's content is kept in a "
13951395"regular string object, which is accessible via the :attr:`data` attribute of"
@@ -1400,19 +1400,19 @@ msgstr ""
14001400"模拟一个字符串对象。这个实例对象的内容保存为一个正常字符串,通过 :class:`UserString` 的 :attr:`data` "
14011401"属性存取。实例内容初始化设置为 *seq* 的copy。*seq* 参数可以是任何可通过内建 :func:`str` 函数转换为字符串的对象。"
14021402
1403- #: ../../library/collections.rst:1244
1403+ #: ../../library/collections.rst:1246
14041404msgid ""
14051405"In addition to supporting the methods and operations of strings, "
14061406":class:`UserString` instances provide the following attribute:"
14071407msgstr ":class:`UserString` 提供了以下属性作为字符串方法和操作的额外支持:"
14081408
1409- #: ../../library/collections.rst:1249
1409+ #: ../../library/collections.rst:1251
14101410msgid ""
14111411"A real :class:`str` object used to store the contents of the "
14121412":class:`UserString` class."
14131413msgstr "一个真正的 :class:`str` 对象用来存放 :class:`UserString` 类的内容。"
14141414
1415- #: ../../library/collections.rst:1252
1415+ #: ../../library/collections.rst:1254
14161416msgid ""
14171417"New methods ``__getnewargs__``, ``__rmod__``, ``casefold``, ``format_map``, "
14181418"``isprintable``, and ``maketrans``."
0 commit comments