@@ -11,7 +11,7 @@ msgid ""
11
11
msgstr ""
12
12
"Project-Id-Version : Python 3.10\n "
13
13
"Report-Msgid-Bugs-To : \n "
14
- "POT-Creation-Date : 2023-07-29 03:05 +0000\n "
14
+ "POT-Creation-Date : 2023-08-04 15:17 +0000\n "
15
15
"PO-Revision-Date : 2022-11-05 17:21+0000\n "
16
16
"Last-Translator : Rafael Fontenelle <rffontenelle@gmail.com>, 2023\n "
17
17
"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -27,7 +27,7 @@ msgstr ":mod:`collections` --- 容器数据类型"
27
27
28
28
#: ../../library/collections.rst:10
29
29
msgid "**Source code:** :source:`Lib/collections/__init__.py`"
30
- msgstr "**Source code: ** :source:`Lib/collections/__init__.py`"
30
+ msgstr "**源代码: ** :source:`Lib/collections/__init__.py`"
31
31
32
32
#: ../../library/collections.rst:20
33
33
msgid ""
@@ -44,47 +44,47 @@ msgstr ":func:`namedtuple`"
44
44
45
45
#: ../../library/collections.rst:25
46
46
msgid "factory function for creating tuple subclasses with named fields"
47
- msgstr "创建命名元组子类的工厂函数 "
47
+ msgstr "一个工厂函数,用来创建元组的子类,子类的字段是有名称的。 "
48
48
49
49
#: ../../library/collections.rst:26
50
50
msgid ":class:`deque`"
51
51
msgstr ":class:`deque`"
52
52
53
53
#: ../../library/collections.rst:26
54
54
msgid "list-like container with fast appends and pops on either end"
55
- msgstr "类似列表(list)的容器,实现了在两端快速添加( append)和弹出( pop) "
55
+ msgstr "类似列表的容器,但 append 和 pop 在其两端的速度都很快。 "
56
56
57
57
#: ../../library/collections.rst:27
58
58
msgid ":class:`ChainMap`"
59
59
msgstr ":class:`ChainMap`"
60
60
61
61
#: ../../library/collections.rst:27
62
62
msgid "dict-like class for creating a single view of multiple mappings"
63
- msgstr "类似字典(dict)的容器类,将多个映射集合到一个视图里面 "
63
+ msgstr "类似字典的类,用于创建包含多个映射的单个视图。 "
64
64
65
65
#: ../../library/collections.rst:28
66
66
msgid ":class:`Counter`"
67
67
msgstr ":class:`Counter`"
68
68
69
69
#: ../../library/collections.rst:28
70
70
msgid "dict subclass for counting :term:`hashable` objects"
71
- msgstr "用于对 :term:`hashable` 对象计数的字典子类 "
71
+ msgstr "用于计数 :term:`hashable` 对象的字典子类 "
72
72
73
73
#: ../../library/collections.rst:29
74
74
msgid ":class:`OrderedDict`"
75
75
msgstr ":class:`OrderedDict`"
76
76
77
77
#: ../../library/collections.rst:29
78
78
msgid "dict subclass that remembers the order entries were added"
79
- msgstr "字典的子类,保存了他们被添加的顺序 "
79
+ msgstr "字典的子类,能记住条目被添加进去的顺序。 "
80
80
81
81
#: ../../library/collections.rst:30
82
82
msgid ":class:`defaultdict`"
83
83
msgstr ":class:`defaultdict`"
84
84
85
85
#: ../../library/collections.rst:30
86
86
msgid "dict subclass that calls a factory function to supply missing values"
87
- msgstr "字典的子类,提供了一个工厂函数,为字典查询提供一个默认值 "
87
+ msgstr "字典的子类,通过调用用户指定的工厂函数,为键提供默认值。 "
88
88
89
89
#: ../../library/collections.rst:31
90
90
msgid ":class:`UserDict`"
@@ -121,13 +121,13 @@ msgid ""
121
121
"than creating a new dictionary and running multiple :meth:`~dict.update` "
122
122
"calls."
123
123
msgstr ""
124
- "一个 :class:`ChainMap` 类是为了将多个映射快速的链接到一起 ,这样它们就可以作为一个单元处理。它通常比创建一个新字典和多次调用 "
125
- ":meth:`~dict.update` 要快很多 。"
124
+ ":class:`ChainMap` 类将多个映射迅速地链到一起 ,这样它们就可以作为一个单元处理。这通常比创建一个新字典再重复地使用 "
125
+ ":meth:`~dict.update` 要快得多 。"
126
126
127
127
#: ../../library/collections.rst:46
128
128
msgid ""
129
129
"The class can be used to simulate nested scopes and is useful in templating."
130
- msgstr "这个类可以用于模拟嵌套作用域,并且在模版化的时候比较有用 。"
130
+ msgstr "这个类可以用于模拟嵌套作用域,并且对模版化有用 。"
131
131
132
132
#: ../../library/collections.rst:50
133
133
msgid ""
@@ -136,8 +136,8 @@ msgid ""
136
136
"empty dictionary is provided so that a new chain always has at least one "
137
137
"mapping."
138
138
msgstr ""
139
- "一个 :class:`ChainMap` 将多个字典或者其他映射组合在一起,创建一个单独的可更新的视图。 如果没有 *maps* "
140
- "被指定,就提供一个默认的空字典,这样一个新链至少有一个映射 。"
139
+ "一个 :class:`ChainMap` 将多个字典或者其他映射组合在一起,创建一个单独的可更新的视图。 如果没有指定任何 "
140
+ "*maps*,一个空字典会被作为 *maps*。这样,每个新链至少包含一个映射 。"
141
141
142
142
#: ../../library/collections.rst:54
143
143
msgid ""
0 commit comments