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

Skip to content

Commit b49f1ea

Browse files
[po] auto sync
1 parent bf2cfd1 commit b49f1ea

2 files changed

Lines changed: 20 additions & 6 deletions

File tree

c-api/marshal.po

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,19 +96,23 @@ msgid ""
9696
"opened for reading. Only a 16-bit value can be read in using this function,"
9797
" regardless of the native size of :c:type:`short`."
9898
msgstr ""
99+
"从打开用于读取的 :c:type:`FILE\\*` 的对应数据流返回一个 C :c:type:`short`。 使用此函数只能读取 16 "
100+
"位的值,无论本机 :c:type:`short` 的长度如何。"
99101

100102
#: ../../c-api/marshal.rst:66
101103
msgid ""
102104
"Return a Python object from the data stream in a :c:type:`FILE\\*` opened "
103105
"for reading."
104-
msgstr ""
106+
msgstr "从打开用于读取的 :c:type:`FILE\\*` 的对应数据流返回一个 Python 对象。"
105107

106108
#: ../../c-api/marshal.rst:69 ../../c-api/marshal.rst:83
107109
#: ../../c-api/marshal.rst:92
108110
msgid ""
109111
"On error, sets the appropriate exception (:exc:`EOFError`, :exc:`ValueError`"
110112
" or :exc:`TypeError`) and returns ``NULL``."
111113
msgstr ""
114+
"发生错误时,将设置适当的异常 (:exc:`EOFError`, :exc:`ValueError` 或 :exc:`TypeError`) 并返回 "
115+
"``NULL``。"
112116

113117
#: ../../c-api/marshal.rst:75
114118
msgid ""
@@ -120,9 +124,12 @@ msgid ""
120124
"file. Only use these variant if you are certain that you won't be reading "
121125
"anything else from the file."
122126
msgstr ""
127+
"从打开用于读取的 :c:type:`FILE\\*` 的对应数据流返回一个 Python 对象。 不同于 "
128+
":c:func:`PyMarshal_ReadObjectFromFile`,此函数假定将不再从该文件读取更多的对象,允许其将文件数据积极地载入内存,以便反序列化过程可以在内存中的数据上操作而不是每次从文件读取一个字节。"
129+
" 只有当你确定不会再从文件读取任何内容时方可使用此方式。"
123130

124131
#: ../../c-api/marshal.rst:89
125132
msgid ""
126133
"Return a Python object from the data stream in a byte buffer containing "
127134
"*len* bytes pointed to by *data*."
128-
msgstr ""
135+
msgstr "从包含指向 *data* 的 *len* 个字节的字节缓冲区对应的数据流返回一个 Python 对象。"

library/io.po

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
# Meng Du <[email protected]>, 2019
99
# Wu Pipi, 2019
1010
# zkonge <[email protected]>, 2019
11-
# Freesand Leo <[email protected]>, 2020
1211
# ppcfish <[email protected]>, 2020
1312
# Shengjing Zhu <[email protected]>, 2020
13+
# Freesand Leo <[email protected]>, 2020
1414
#
1515
#, fuzzy
1616
msgid ""
@@ -19,7 +19,7 @@ msgstr ""
1919
"Report-Msgid-Bugs-To: \n"
2020
"POT-Creation-Date: 2020-02-09 12:40+0000\n"
2121
"PO-Revision-Date: 2017-02-16 23:15+0000\n"
22-
"Last-Translator: Shengjing Zhu <zsj950618@gmail.com>, 2020\n"
22+
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2020\n"
2323
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2424
"MIME-Version: 1.0\n"
2525
"Content-Type: text/plain; charset=UTF-8\n"
@@ -625,6 +625,8 @@ msgid ""
625625
"the contents of the new file area depend on the platform (on most systems, "
626626
"additional bytes are zero-filled). The new file size is returned."
627627
msgstr ""
628+
"将流的大小调整为给定的 *size* 个字节(如果未指定 *size* 则调整至当前位置)。 当前的流位置不变。 这个调整操作可扩展或减小当前文件大小。"
629+
" 在扩展的情况下,新文件区域的内容取决于具体平台(在大多数系统上,额外的字节会填充为零)。 返回新的文件大小。"
628630

629631
#: ../../library/io.rst:371
630632
msgid "Windows will now zero-fill files when extending."
@@ -635,32 +637,37 @@ msgid ""
635637
"Return ``True`` if the stream supports writing. If ``False``, :meth:`write`"
636638
" and :meth:`truncate` will raise :exc:`OSError`."
637639
msgstr ""
640+
"如果流支持写入则返回 ``True``。 如为 ``False``,则 :meth:`write` 和 :meth:`truncate` 将引发 "
641+
":exc:`OSError`。"
638642

639643
#: ../../library/io.rst:381
640644
msgid ""
641645
"Write a list of lines to the stream. Line separators are not added, so it "
642646
"is usual for each of the lines provided to have a line separator at the end."
643-
msgstr ""
647+
msgstr "将行列表写入到流。 不会添加行分隔符,因此通常所提供的每一行都带有末尾行分隔符。"
644648

645649
#: ../../library/io.rst:387
646650
msgid ""
647651
"Prepare for object destruction. :class:`IOBase` provides a default "
648652
"implementation of this method that calls the instance's "
649653
":meth:`~IOBase.close` method."
650654
msgstr ""
655+
"为对象销毁进行准备。 :class:`IOBase` 提供了此方法的默认实现,该实现会调用实例的 :meth:`~IOBase.close` 方法。"
651656

652657
#: ../../library/io.rst:394
653658
msgid ""
654659
"Base class for raw binary I/O. It inherits :class:`IOBase`. There is no "
655660
"public constructor."
656-
msgstr ""
661+
msgstr "原始二进制 I/O 的基类。 它继承自 :class:`IOBase`。 没有公共构造器。"
657662

658663
#: ../../library/io.rst:397
659664
msgid ""
660665
"Raw binary I/O typically provides low-level access to an underlying OS "
661666
"device or API, and does not try to encapsulate it in high-level primitives "
662667
"(this is left to Buffered I/O and Text I/O, described later in this page)."
663668
msgstr ""
669+
"原始二进制 I/O 通常提供对下层 OS 设备或 API 的低层级访问,而不尝试将其封装到高层级的基元中(这是留给缓冲 I/O 和 Text I/O "
670+
"的,将在下文中描述)。"
664671

665672
#: ../../library/io.rst:401
666673
msgid ""

0 commit comments

Comments
 (0)