@@ -16,7 +16,7 @@ msgid ""
1616msgstr ""
1717"Project-Id-Version : Python 3.9\n "
1818"Report-Msgid-Bugs-To : \n "
19- "POT-Creation-Date : 2021-01-01 05:02 +0000\n "
19+ "POT-Creation-Date : 2021-04-27 06:12 +0000\n "
2020"PO-Revision-Date : 2017-02-16 17:48+0000\n "
2121"
Last-Translator :
Freesand Leo <[email protected] >, 2020\n "
2222"Language-Team : Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -360,21 +360,17 @@ msgid ""
360360"Read *n* items (as machine values) from the :term:`file object` *f* and "
361361"append them to the end of the array. If less than *n* items are available, "
362362":exc:`EOFError` is raised, but the items that were available are still "
363- "inserted into the array. *f* must be a real built-in file object; something "
364- "else with a :meth:`read` method won't do."
363+ "inserted into the array."
365364msgstr ""
366- "从 :term:`file object` *f* 中读取 *n* 项(解读为机器值)并将它们添加到数组末尾。 如果可读取数据少于 *n* 项则将引发 "
367- ":exc:`EOFError`,但有效的项仍然会被插入数组。 *f* 必须为一个真实的内置文件对象;不支持带有 :meth:`read` "
368- "方法的其它对象。"
369365
370- #: ../../library/array.rst:169
366+ #: ../../library/array.rst:168
371367msgid ""
372368"Append items from the list. This is equivalent to ``for x in list: "
373369"a.append(x)`` except that if there is a type error, the array is unchanged."
374370msgstr ""
375371"添加来自 list 的项。 这等价于 ``for x in list: a.append(x)``,区别在于如果发生类型错误,数组将不会被改变。"
376372
377- #: ../../library/array.rst:175
373+ #: ../../library/array.rst:174
378374msgid ""
379375"Extends this array with data from the given unicode string. The array must "
380376"be a type ``'u'`` array; otherwise a :exc:`ValueError` is raised. Use "
@@ -384,53 +380,53 @@ msgstr ""
384380"使用来自给定 Unicode 字符串的数组扩展数组。 数组必须是类型为 ``'u'`` 的数组;否则将引发 :exc:`ValueError`。 请使用"
385381" ``array.frombytes(unicodestring.encode(enc))`` 来将 Unicode 数据添加到其他类型的数组。"
386382
387- #: ../../library/array.rst:183
383+ #: ../../library/array.rst:182
388384msgid ""
389385"Return the smallest *i* such that *i* is the index of the first occurrence "
390386"of *x* in the array."
391387msgstr "返回最小的 *i* 使得 *i* 为 *x* 在数组中首次出现的序号。"
392388
393- #: ../../library/array.rst:189
389+ #: ../../library/array.rst:188
394390msgid ""
395391"Insert a new item with value *x* in the array before position *i*. Negative "
396392"values are treated as being relative to the end of the array."
397393msgstr "将值 *x* 作为新项插入数组的 *i* 位置之前。 负值将被视为相对于数组末尾的位置。"
398394
399- #: ../../library/array.rst:195
395+ #: ../../library/array.rst:194
400396msgid ""
401397"Removes the item with the index *i* from the array and returns it. The "
402398"optional argument defaults to ``-1``, so that by default the last item is "
403399"removed and returned."
404400msgstr "从数组中移除序号为 *i* 的项并将其返回。 可选参数值默认为 ``-1``,因此默认将移除并返回末尾项。"
405401
406- #: ../../library/array.rst:202
402+ #: ../../library/array.rst:201
407403msgid "Remove the first occurrence of *x* from the array."
408404msgstr "从数组中移除首次出现的 *x*。"
409405
410- #: ../../library/array.rst:207
406+ #: ../../library/array.rst:206
411407msgid "Reverse the order of the items in the array."
412408msgstr "反转数组中各项的顺序。"
413409
414- #: ../../library/array.rst:212
410+ #: ../../library/array.rst:211
415411msgid ""
416412"Convert the array to an array of machine values and return the bytes "
417413"representation (the same sequence of bytes that would be written to a file "
418414"by the :meth:`tofile` method.)"
419415msgstr "将数组转换为一个机器值数组并返回其字节表示(即相当与通过 :meth:`tofile` 方法写入到文件的字节序列。)"
420416
421- #: ../../library/array.rst:216
417+ #: ../../library/array.rst:215
422418msgid ":meth:`tostring` is renamed to :meth:`tobytes` for clarity."
423419msgstr ":meth:`tostring` 被重命名为 :meth:`tobytes` 以使其含义更清晰。"
424420
425- #: ../../library/array.rst:222
421+ #: ../../library/array.rst:221
426422msgid "Write all items (as machine values) to the :term:`file object` *f*."
427423msgstr "将所有项(作为机器值)写入到 :term:`file object` *f*。"
428424
429- #: ../../library/array.rst:227
425+ #: ../../library/array.rst:226
430426msgid "Convert the array to an ordinary list with the same items."
431427msgstr "将数组转换为包含相同项的普通列表。"
432428
433- #: ../../library/array.rst:232
429+ #: ../../library/array.rst:231
434430msgid ""
435431"Convert the array to a unicode string. The array must be a type ``'u'`` "
436432"array; otherwise a :exc:`ValueError` is raised. Use "
@@ -440,7 +436,7 @@ msgstr ""
440436"将数组转换为一个 Unicode 字符串。 数组必须是类型为 ``'u'`` 的数组;否则将引发 :exc:`ValueError`。 请使用 "
441437"``array.tobytes().decode(enc)`` 来从其他类型的数组生成 Unicode 字符串。"
442438
443- #: ../../library/array.rst:237
439+ #: ../../library/array.rst:236
444440msgid ""
445441"When an array object is printed or converted to a string, it is represented "
446442"as ``array(typecode, initializer)``. The *initializer* is omitted if the "
@@ -455,29 +451,29 @@ msgstr ""
455451":func:`eval` 保证能将字符串转换回具有相同类型和值的数组,只要 :class:`~array.array` 类已通过 ``from "
456452"array import array`` 被引入。 例如::"
457453
458- #: ../../library/array.rst:254
454+ #: ../../library/array.rst:253
459455msgid "Module :mod:`struct`"
460456msgstr "模块 :mod:`struct`"
461457
462- #: ../../library/array.rst:254
458+ #: ../../library/array.rst:253
463459msgid "Packing and unpacking of heterogeneous binary data."
464460msgstr "打包和解包异构二进制数据。"
465461
466- #: ../../library/array.rst:258
462+ #: ../../library/array.rst:257
467463msgid "Module :mod:`xdrlib`"
468464msgstr "模块 :mod:`xdrlib`"
469465
470- #: ../../library/array.rst:257
466+ #: ../../library/array.rst:256
471467msgid ""
472468"Packing and unpacking of External Data Representation (XDR) data as used in "
473469"some remote procedure call systems."
474470msgstr "打包和解包用于某些远程过程调用系统的 External Data Representation (XDR) 数据。"
475471
476- #: ../../library/array.rst:261
472+ #: ../../library/array.rst:260
477473msgid "`The Numerical Python Documentation <https://docs.scipy.org/doc/>`_"
478474msgstr "`Numerical Python 文档 <https://docs.scipy.org/doc/>`_"
479475
480- #: ../../library/array.rst:261
476+ #: ../../library/array.rst:260
481477msgid ""
482478"The Numeric Python extension (NumPy) defines another array type; see "
483479"http://www.numpy.org/ for further information about Numerical Python."
0 commit comments