Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 71a3d9b

Browse files
committed
[po] auto sync bot
1 parent 0296029 commit 71a3d9b

2 files changed

Lines changed: 20 additions & 10 deletions

File tree

library/collections.po

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ msgid ""
176176
"*maps* attribute, a method for creating new subcontexts, and a property for "
177177
"accessing all but the first mapping:"
178178
msgstr ""
179-
"支持所有常用字典方法都。另外还有一个 *maps* 属性(attribute),一个创建子上下文的方法(method), "
179+
"支持所有常用字典方法。另外还有一个 *maps* 属性(attribute),一个创建子上下文的方法(method), "
180180
"一个存取它们首个映射的属性(property):"
181181

182182
#: ../../library/collections.rst:75
@@ -196,7 +196,7 @@ msgid ""
196196
"*d.maps)``. This method is used for creating subcontexts that can be "
197197
"updated without altering values in any of the parent mappings."
198198
msgstr ""
199-
"返回一个新的 :class:`ChainMap` 类,包含了一个新映射(map),后面跟随当前实例的全部映射(map)。如果``m`` "
199+
"返回一个新的 :class:`ChainMap` 类,包含了一个新映射(map),后面跟随当前实例的全部映射(map)。如果 ``m`` "
200200
"被指定,它就成为不同新的实例,就是在所有映射前加上 m,如果没有指定,就加上一个空字典,这样的话一个 ``d.new_child()`` 调用等价于 "
201201
"``ChainMap({}, *d.maps)`` 。这个方法用于创建子上下文,不改变任何父映射的值。"
202202

@@ -346,7 +346,7 @@ msgid ""
346346
"Return an iterator over elements repeating each as many times as its count."
347347
" Elements are returned in arbitrary order. If an element's count is less "
348348
"than one, :meth:`elements` will ignore it."
349-
msgstr "返回一个迭代器,每个元素重复计数的个数。 元素顺序是任意的。如果一个元素的计数小于1, :meth:`elements` 就会忽略它。"
349+
msgstr "返回一个迭代器,每个元素重复计数的个数。元素顺序是任意的。如果一个元素的计数小于1, :meth:`elements` 就会忽略它。"
350350

351351
#: ../../library/collections.rst:272
352352
msgid ""
@@ -707,8 +707,8 @@ msgid ""
707707
"slicing and deletion. For example, a pure Python implementation of ``del "
708708
"d[n]`` relies on the ``rotate()`` method to position elements to be popped::"
709709
msgstr ""
710-
":meth:`~deque.rotate` 方法提供了一种方式来实现 :class:`deque` 切片和删除。 例如, 一个纯的Python``del"
711-
" d[n]`` 实现依赖于``rotate()`` 来定位要弹出的元素 ::"
710+
":meth:`~deque.rotate` 方法提供了一种方式来实现 :class:`deque` 切片和删除。 例如, 一个纯的Python "
711+
"``del d[n]`` 实现依赖于 ``rotate()`` 来定位要弹出的元素 ::"
712712

713713
#: ../../library/collections.rst:653
714714
msgid ""
@@ -746,7 +746,7 @@ msgid ""
746746
"arguments are treated the same as if they were passed to the :class:`dict` "
747747
"constructor, including keyword arguments."
748748
msgstr ""
749-
"第一个参数:attr:`default_factory` 提供了一个初始值。它默认为 ``None`` 。所有的其他参数都等同与 "
749+
"第一个参数 :attr:`default_factory` 提供了一个初始值。它默认为 ``None`` 。所有的其他参数都等同与 "
750750
":class:`dict` 构建器中的参数对待,包括关键词参数。"
751751

752752
#: ../../library/collections.rst:678
@@ -806,7 +806,7 @@ msgid ""
806806
"This attribute is used by the :meth:`__missing__` method; it is initialized "
807807
"from the first argument to the constructor, if present, or to ``None``, if "
808808
"absent."
809-
msgstr "这个属性被:meth:`__missing__` 方法使用;它从构建器的第一个参数初始化,如果提供了的话,否则就是 ``None`` 。"
809+
msgstr "这个属性被 :meth:`__missing__` 方法使用;它从构建器的第一个参数初始化,如果提供了的话,否则就是 ``None`` 。"
810810

811811
#: ../../library/collections.rst:714
812812
msgid ":class:`defaultdict` Examples"
@@ -973,7 +973,7 @@ msgstr "移去了 *verbose* 参数和属性 :attr:`_source` 。"
973973
#: ../../library/collections.rst:838
974974
msgid ""
975975
"Added the *defaults* parameter and the :attr:`_field_defaults` attribute."
976-
msgstr "添加了 *defaults* 参数和 :attr: `_fields_defaults` 属性。"
976+
msgstr "添加了 *defaults* 参数和 :attr:`_field_defaults` 属性。"
977977

978978
#: ../../library/collections.rst:858
979979
msgid ""
@@ -1124,7 +1124,7 @@ msgid ""
11241124
"out)` order if *last* is true or :abbr:`FIFO (first-in, first-out)` order if"
11251125
" false."
11261126
msgstr ""
1127-
"有序字典的方法 :meth:`popitem` 移除一个键值对。 如果*last*值为真,键值对返回为:abbr:`LIFO (last-in, "
1127+
"有序字典的方法 :meth:`popitem` 移除一个键值对。 如果 *last* 值为真,键值对返回为 :abbr:`LIFO (last-in, "
11281128
"first-out)` 后进先出顺序,否则就返回 :abbr:`FIFO (first-in, first-out)` 先进先出。"
11291129

11301130
#: ../../library/collections.rst:1043
@@ -1170,7 +1170,7 @@ msgid ""
11701170
"passed to the :class:`OrderedDict` constructor and its :meth:`update` "
11711171
"method."
11721172
msgstr ""
1173-
":pep:`468` 赞成将关键词参数的顺序保留, 通过传递 给 :class:`OrderedDict`构造器和它的 :meth:`update` "
1173+
":pep:`468` 赞成将关键词参数的顺序保留, 通过传递给 :class:`OrderedDict` 构造器和它的 :meth:`update` "
11741174
"方法。"
11751175

11761176
#: ../../library/collections.rst:1078

tutorial/errors.po

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,11 @@ msgid ""
348348
" a :keyword:`break`, :keyword:`continue` or :keyword:`return` statement. A "
349349
"more complicated example::"
350350
msgstr ""
351+
"*finally 子句* 总是在 :keyword:`try` 语句结束前执行,无论是否发生了异常。当 :keyword:`try` "
352+
"子句中发生了异常且尚未由 :keyword:`except` 子句处理(或者它发生在 :keyword:`except` 或 "
353+
":keyword:`else` 子句中)时,将在 :keyword:`finally` 子句执行后重新抛出它。当 :keyword:`try` "
354+
"语句的任何其他子句通过 :keyword:`break`, :keyword:`continue` 或者 :keyword:`return` "
355+
"语句离开时,:keyword:`finally` 子句也会在 “离开的时候”执行。一个更复杂的例子::"
351356

352357
#: ../../tutorial/errors.rst:377
353358
msgid ""
@@ -356,6 +361,8 @@ msgid ""
356361
":keyword:`except` clause and therefore re-raised after the "
357362
":keyword:`finally` clause has been executed."
358363
msgstr ""
364+
"正如你所看到的,:keyword:`finally` 子句在任何情况下都会被执行。通过两个字符串相除引发的 :exc:`TypeError` 不会由 "
365+
":keyword:`except` 子句处理,因此在 :keyword:`finally` 子句执行后重新抛出。"
359366

360367
#: ../../tutorial/errors.rst:382
361368
msgid ""
@@ -375,6 +382,7 @@ msgid ""
375382
" the object succeeded or failed. Look at the following example, which tries "
376383
"to open a file and print its contents to the screen. ::"
377384
msgstr ""
385+
"某些对象定义了在不再需要该对象时要执行的标准清理操作,无论使用该对象的操作是成功还是失败。请查看下面的示例,它尝试打开一个文件并把其内容打印到屏幕上。::"
378386

379387
#: ../../tutorial/errors.rst:400
380388
msgid ""
@@ -385,6 +393,8 @@ msgid ""
385393
" to be used in a way that ensures they are always cleaned up promptly and "
386394
"correctly. ::"
387395
msgstr ""
396+
"这个代码的问题在于,它在这部分代码执行完后,会使文件在一段不确定的时间内处于打开状态。这在简单脚本中不是问题,但对于较大的应用程序来说可能是个问题。 "
397+
":keyword:`with` 语句允许像文件这样的对象能够以一种确保它们得到及时和正确的清理的方式使用。::"
388398

389399
#: ../../tutorial/errors.rst:410
390400
msgid ""

0 commit comments

Comments
 (0)