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

Skip to content

Commit 867d0b4

Browse files
[po] auto sync
1 parent db2cabf commit 867d0b4

4 files changed

Lines changed: 6897 additions & 6874 deletions

File tree

library/array.po

Lines changed: 21 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ msgid ""
1616
msgstr ""
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."
365364
msgstr ""
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
371367
msgid ""
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."
374370
msgstr ""
375371
"添加来自 list 的项。 这等价于 ``for x in list: a.append(x)``,区别在于如果发生类型错误,数组将不会被改变。"
376372

377-
#: ../../library/array.rst:175
373+
#: ../../library/array.rst:174
378374
msgid ""
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
388384
msgid ""
389385
"Return the smallest *i* such that *i* is the index of the first occurrence "
390386
"of *x* in the array."
391387
msgstr "返回最小的 *i* 使得 *i* 为 *x* 在数组中首次出现的序号。"
392388

393-
#: ../../library/array.rst:189
389+
#: ../../library/array.rst:188
394390
msgid ""
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."
397393
msgstr "将值 *x* 作为新项插入数组的 *i* 位置之前。 负值将被视为相对于数组末尾的位置。"
398394

399-
#: ../../library/array.rst:195
395+
#: ../../library/array.rst:194
400396
msgid ""
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."
404400
msgstr "从数组中移除序号为 *i* 的项并将其返回。 可选参数值默认为 ``-1``,因此默认将移除并返回末尾项。"
405401

406-
#: ../../library/array.rst:202
402+
#: ../../library/array.rst:201
407403
msgid "Remove the first occurrence of *x* from the array."
408404
msgstr "从数组中移除首次出现的 *x*。"
409405

410-
#: ../../library/array.rst:207
406+
#: ../../library/array.rst:206
411407
msgid "Reverse the order of the items in the array."
412408
msgstr "反转数组中各项的顺序。"
413409

414-
#: ../../library/array.rst:212
410+
#: ../../library/array.rst:211
415411
msgid ""
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.)"
419415
msgstr "将数组转换为一个机器值数组并返回其字节表示(即相当与通过 :meth:`tofile` 方法写入到文件的字节序列。)"
420416

421-
#: ../../library/array.rst:216
417+
#: ../../library/array.rst:215
422418
msgid ":meth:`tostring` is renamed to :meth:`tobytes` for clarity."
423419
msgstr ":meth:`tostring` 被重命名为 :meth:`tobytes` 以使其含义更清晰。"
424420

425-
#: ../../library/array.rst:222
421+
#: ../../library/array.rst:221
426422
msgid "Write all items (as machine values) to the :term:`file object` *f*."
427423
msgstr "将所有项(作为机器值)写入到 :term:`file object` *f*。"
428424

429-
#: ../../library/array.rst:227
425+
#: ../../library/array.rst:226
430426
msgid "Convert the array to an ordinary list with the same items."
431427
msgstr "将数组转换为包含相同项的普通列表。"
432428

433-
#: ../../library/array.rst:232
429+
#: ../../library/array.rst:231
434430
msgid ""
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
444440
msgid ""
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
459455
msgid "Module :mod:`struct`"
460456
msgstr "模块 :mod:`struct`"
461457

462-
#: ../../library/array.rst:254
458+
#: ../../library/array.rst:253
463459
msgid "Packing and unpacking of heterogeneous binary data."
464460
msgstr "打包和解包异构二进制数据。"
465461

466-
#: ../../library/array.rst:258
462+
#: ../../library/array.rst:257
467463
msgid "Module :mod:`xdrlib`"
468464
msgstr "模块 :mod:`xdrlib`"
469465

470-
#: ../../library/array.rst:257
466+
#: ../../library/array.rst:256
471467
msgid ""
472468
"Packing and unpacking of External Data Representation (XDR) data as used in "
473469
"some remote procedure call systems."
474470
msgstr "打包和解包用于某些远程过程调用系统的 External Data Representation (XDR) 数据。"
475471

476-
#: ../../library/array.rst:261
472+
#: ../../library/array.rst:260
477473
msgid "`The Numerical Python Documentation <https://docs.scipy.org/doc/>`_"
478474
msgstr "`Numerical Python 文档 <https://docs.scipy.org/doc/>`_"
479475

480-
#: ../../library/array.rst:261
476+
#: ../../library/array.rst:260
481477
msgid ""
482478
"The Numeric Python extension (NumPy) defines another array type; see "
483479
"http://www.numpy.org/ for further information about Numerical Python."

library/dataclasses.po

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
# Translators:
77
# Shengjing Zhu <[email protected]>, 2018
88
# ww song <[email protected]>, 2018
9-
# cdarlint <[email protected]>, 2019
109
# Meng Du <[email protected]>, 2019
1110
# Freesand Leo <[email protected]>, 2021
1211
#
@@ -15,7 +14,7 @@ msgid ""
1514
msgstr ""
1615
"Project-Id-Version: Python 3.9\n"
1716
"Report-Msgid-Bugs-To: \n"
18-
"POT-Creation-Date: 2021-03-09 05:40+0000\n"
17+
"POT-Creation-Date: 2021-04-27 06:12+0000\n"
1918
"PO-Revision-Date: 2018-06-29 21:06+0000\n"
2019
"Last-Translator: Freesand Leo <[email protected]>, 2021\n"
2120
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -780,7 +779,6 @@ msgstr "异常"
780779
#: ../../library/dataclasses.rst:593
781780
msgid ""
782781
"Raised when an implicitly defined :meth:`__setattr__` or :meth:`__delattr__`"
783-
" is called on a dataclass which was defined with ``frozen=True``."
782+
" is called on a dataclass which was defined with ``frozen=True``. It is a "
783+
"subclass of :exc:`AttributeError`."
784784
msgstr ""
785-
"在使用 ``frozen=True`` 定义的数据类上调用隐式定义的 :meth:`__setattr__` 或 :meth:`__delattr__`"
786-
" 时引发。"

0 commit comments

Comments
 (0)