@@ -17,7 +17,7 @@ msgid ""
1717msgstr ""
1818"Project-Id-Version : Python 3.9\n "
1919"Report-Msgid-Bugs-To : \n "
20- "POT-Creation-Date : 2021-07-23 06:59 +0000\n "
20+ "POT-Creation-Date : 2021-08-03 07:07 +0000\n "
2121"PO-Revision-Date : 2017-02-16 23:03+0000\n "
2222"
Last-Translator :
Freesand Leo <[email protected] >, 2021\n "
2323"Language-Team : Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -1286,14 +1286,14 @@ msgstr "创建记住键值 *最后* 插入顺序的有序字典变体很简单
12861286#: ../../library/collections.rst:1151
12871287msgid ""
12881288"An :class:`OrderedDict` would also be useful for implementing variants of "
1289- ":func:`functools.lru_cache`:: "
1290- msgstr "一个 :class:`OrderedDict` 对于实现 :func:`functools.lru_cache` 的变体也很有用:: "
1289+ ":func:`functools.lru_cache`:"
1290+ msgstr ""
12911291
1292- #: ../../library/collections.rst:1176
1292+ #: ../../library/collections.rst:1192
12931293msgid ":class:`UserDict` objects"
12941294msgstr ":class:`UserDict` 对象"
12951295
1296- #: ../../library/collections.rst:1178
1296+ #: ../../library/collections.rst:1194
12971297msgid ""
12981298"The class, :class:`UserDict` acts as a wrapper around dictionary objects. "
12991299"The need for this class has been partially supplanted by the ability to "
@@ -1303,7 +1303,7 @@ msgstr ""
13031303":class:`UserDict` 类是用作字典对象的外包装。对这个类的需求已部分由直接创建 :class:`dict` "
13041304"的子类的功能所替代;不过,这个类处理起来更容易,因为底层的字典可以作为属性来访问。"
13051305
1306- #: ../../library/collections.rst:1186
1306+ #: ../../library/collections.rst:1202
13071307msgid ""
13081308"Class that simulates a dictionary. The instance's contents are kept in a "
13091309"regular dictionary, which is accessible via the :attr:`data` attribute of "
@@ -1315,22 +1315,22 @@ msgstr ""
13151315"如果提供了 *initialdata*,则 :attr:`data` 会用其内容来初始化;请注意对 *initialdata* "
13161316"的引用将不会被保留,以允许它被用于其他目的。"
13171317
1318- #: ../../library/collections.rst:1192
1318+ #: ../../library/collections.rst:1208
13191319msgid ""
13201320"In addition to supporting the methods and operations of mappings, "
13211321":class:`UserDict` instances provide the following attribute:"
13221322msgstr ":class:`UserDict` 实例提供了以下属性作为扩展方法和操作的支持:"
13231323
1324- #: ../../library/collections.rst:1197
1324+ #: ../../library/collections.rst:1213
13251325msgid ""
13261326"A real dictionary used to store the contents of the :class:`UserDict` class."
13271327msgstr "一个真实的字典,用于保存 :class:`UserDict` 类的内容。"
13281328
1329- #: ../../library/collections.rst:1203
1329+ #: ../../library/collections.rst:1219
13301330msgid ":class:`UserList` objects"
13311331msgstr ":class:`UserList` 对象"
13321332
1333- #: ../../library/collections.rst:1205
1333+ #: ../../library/collections.rst:1221
13341334msgid ""
13351335"This class acts as a wrapper around list objects. It is a useful base class"
13361336" for your own list-like classes which can inherit from them and override "
@@ -1339,15 +1339,15 @@ msgid ""
13391339msgstr ""
13401340"这个类封装了列表对象。它是一个有用的基础类,对于你想自定义的类似列表的类,可以继承和覆盖现有的方法,也可以添加新的方法。这样我们可以对列表添加新的行为。"
13411341
1342- #: ../../library/collections.rst:1210
1342+ #: ../../library/collections.rst:1226
13431343msgid ""
13441344"The need for this class has been partially supplanted by the ability to "
13451345"subclass directly from :class:`list`; however, this class can be easier to "
13461346"work with because the underlying list is accessible as an attribute."
13471347msgstr ""
13481348"对这个类的需求已部分由直接创建 :class:`list` 的子类的功能所替代;不过,这个类处理起来更容易,因为底层的列表可以作为属性来访问。"
13491349
1350- #: ../../library/collections.rst:1216
1350+ #: ../../library/collections.rst:1232
13511351msgid ""
13521352"Class that simulates a list. The instance's contents are kept in a regular "
13531353"list, which is accessible via the :attr:`data` attribute of "
@@ -1359,19 +1359,19 @@ msgstr ""
13591359"属性存取。实例内容被初始化为一个 *list* 的copy,默认为 ``[]`` 空列表。 *list* "
13601360"可以是迭代对象,比如一个Python列表,或者一个 :class:`UserList` 对象。"
13611361
1362- #: ../../library/collections.rst:1222
1362+ #: ../../library/collections.rst:1238
13631363msgid ""
13641364"In addition to supporting the methods and operations of mutable sequences, "
13651365":class:`UserList` instances provide the following attribute:"
13661366msgstr ":class:`UserList` 提供了以下属性作为可变序列的方法和操作的扩展:"
13671367
1368- #: ../../library/collections.rst:1227
1368+ #: ../../library/collections.rst:1243
13691369msgid ""
13701370"A real :class:`list` object used to store the contents of the "
13711371":class:`UserList` class."
13721372msgstr "一个 :class:`list` 对象用于存储 :class:`UserList` 的内容。"
13731373
1374- #: ../../library/collections.rst:1230
1374+ #: ../../library/collections.rst:1246
13751375msgid ""
13761376"**Subclassing requirements:** Subclasses of :class:`UserList` are expected "
13771377"to offer a constructor which can be called with either no arguments or one "
@@ -1383,19 +1383,19 @@ msgstr ""
13831383"**子类化的要求:** :class:`UserList` "
13841384"的子类需要提供一个构造器,可以无参数调用,或者一个参数调用。返回一个新序列的列表操作需要创建一个实现类的实例。它假定了构造器可以以一个参数进行调用,这个参数是一个序列对象,作为数据源。"
13851385
1386- #: ../../library/collections.rst:1237
1386+ #: ../../library/collections.rst:1253
13871387msgid ""
13881388"If a derived class does not wish to comply with this requirement, all of the"
13891389" special methods supported by this class will need to be overridden; please "
13901390"consult the sources for information about the methods which need to be "
13911391"provided in that case."
13921392msgstr "如果一个分离的类不希望依照这个需求,所有的特殊方法就必须重写;请参照源代码进行修改。"
13931393
1394- #: ../../library/collections.rst:1243
1394+ #: ../../library/collections.rst:1259
13951395msgid ":class:`UserString` objects"
13961396msgstr ":class:`UserString` 对象"
13971397
1398- #: ../../library/collections.rst:1245
1398+ #: ../../library/collections.rst:1261
13991399msgid ""
14001400"The class, :class:`UserString` acts as a wrapper around string objects. The "
14011401"need for this class has been partially supplanted by the ability to subclass"
@@ -1405,7 +1405,7 @@ msgstr ""
14051405":class:`UserString` 类是用作字符串对象的外包装。对这个类的需求已部分由直接创建 :class:`str` "
14061406"的子类的功能所替代;不过,这个类处理起来更容易,因为底层的字符串可以作为属性来访问。"
14071407
1408- #: ../../library/collections.rst:1253
1408+ #: ../../library/collections.rst:1269
14091409msgid ""
14101410"Class that simulates a string object. The instance's content is kept in a "
14111411"regular string object, which is accessible via the :attr:`data` attribute of"
@@ -1416,19 +1416,19 @@ msgstr ""
14161416"模拟一个字符串对象。这个实例对象的内容保存为一个正常字符串,通过 :class:`UserString` 的 :attr:`data` "
14171417"属性存取。实例内容初始化设置为 *seq* 的copy。*seq* 参数可以是任何可通过内建 :func:`str` 函数转换为字符串的对象。"
14181418
1419- #: ../../library/collections.rst:1260
1419+ #: ../../library/collections.rst:1276
14201420msgid ""
14211421"In addition to supporting the methods and operations of strings, "
14221422":class:`UserString` instances provide the following attribute:"
14231423msgstr ":class:`UserString` 提供了以下属性作为字符串方法和操作的额外支持:"
14241424
1425- #: ../../library/collections.rst:1265
1425+ #: ../../library/collections.rst:1281
14261426msgid ""
14271427"A real :class:`str` object used to store the contents of the "
14281428":class:`UserString` class."
14291429msgstr "一个真正的 :class:`str` 对象用来存放 :class:`UserString` 类的内容。"
14301430
1431- #: ../../library/collections.rst:1268
1431+ #: ../../library/collections.rst:1284
14321432msgid ""
14331433"New methods ``__getnewargs__``, ``__rmod__``, ``casefold``, ``format_map``, "
14341434"``isprintable``, and ``maketrans``."
0 commit comments