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

Skip to content

Commit 85a679f

Browse files
[po] auto sync
1 parent d55aba4 commit 85a679f

1 file changed

Lines changed: 18 additions & 6 deletions

File tree

c-api/marshal.po

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,17 @@
33
# This file is distributed under the same license as the Python package.
44
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55
#
6+
# Translators:
7+
# Freesand Leo <[email protected]>, 2020
8+
#
69
#, fuzzy
710
msgid ""
811
msgstr ""
912
"Project-Id-Version: Python 3.8\n"
1013
"Report-Msgid-Bugs-To: \n"
1114
"POT-Creation-Date: 2020-02-09 12:40+0000\n"
1215
"PO-Revision-Date: 2017-02-16 17:37+0000\n"
16+
"Last-Translator: Freesand Leo <[email protected]>, 2020\n"
1317
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
1418
"MIME-Version: 1.0\n"
1519
"Content-Type: text/plain; charset=UTF-8\n"
@@ -19,7 +23,7 @@ msgstr ""
1923

2024
#: ../../c-api/marshal.rst:6
2125
msgid "Data marshalling support"
22-
msgstr ""
26+
msgstr "数据 marshal 操作支持"
2327

2428
#: ../../c-api/marshal.rst:8
2529
msgid ""
@@ -29,10 +33,12 @@ msgid ""
2933
" read the data back. Files used to store marshalled data must be opened in "
3034
"binary mode."
3135
msgstr ""
36+
"这些例程允许 C 代码处理与 :mod:`marshal` 模块所用相同数据格式的序列化对象。 "
37+
"其中有些函数可用来将数据写入这种序列化格式,另一些函数则可用来读取并恢复数据。 用于存储 marshal 数据的文件必须以二进制模式打开。"
3238

3339
#: ../../c-api/marshal.rst:14
3440
msgid "Numeric values are stored with the least significant byte first."
35-
msgstr ""
41+
msgstr "数字值在存储时会将最低位字节放在开头。"
3642

3743
#: ../../c-api/marshal.rst:16
3844
msgid ""
@@ -41,42 +47,48 @@ msgid ""
4147
"unmarshalling. Version 2 uses a binary format for floating point numbers. "
4248
"``Py_MARSHAL_VERSION`` indicates the current file format (currently 2)."
4349
msgstr ""
50+
"此模块支持两种数据格式版本:第 0 版为历史版本,第 1 版本会在文件和 marshal 反序列化中共享固化的字符串。 第 2 "
51+
"版本会对浮点数使用二进制格式。 ``Py_MARSHAL_VERSION`` 指明了当前文件的格式(当前取值为 2)。"
4452

4553
#: ../../c-api/marshal.rst:24
4654
msgid ""
4755
"Marshal a :c:type:`long` integer, *value*, to *file*. This will only write "
4856
"the least-significant 32 bits of *value*; regardless of the size of the "
4957
"native :c:type:`long` type. *version* indicates the file format."
5058
msgstr ""
59+
"将一个 :c:type:`long` 整数 *value* 以 marshal 格式写入 *file*。 这将只写入 *value* 最低的 32 "
60+
"位;无论本机 :c:type:`long` 类型的长度如何。 *version* 指明文件格式的版本。"
5161

5262
#: ../../c-api/marshal.rst:31
5363
msgid ""
5464
"Marshal a Python object, *value*, to *file*. *version* indicates the file "
5565
"format."
56-
msgstr ""
66+
msgstr "将一个 Python 对象 *value* 以 marshal 格式写入 *file*。 *version* 指明文件格式的版本。"
5767

5868
#: ../../c-api/marshal.rst:37
5969
msgid ""
6070
"Return a bytes object containing the marshalled representation of *value*. "
6171
"*version* indicates the file format."
62-
msgstr ""
72+
msgstr "返回一个包含 *value* 的 marshal 表示形式的字节串对象。 *version* 指明文件格式的版本。"
6373

6474
#: ../../c-api/marshal.rst:41
6575
msgid "The following functions allow marshalled values to be read back in."
66-
msgstr ""
76+
msgstr "以下函数允许读取并恢复存储为 marshal 格式的值。"
6777

6878
#: ../../c-api/marshal.rst:46
6979
msgid ""
7080
"Return a C :c:type:`long` from the data stream in a :c:type:`FILE\\*` opened"
7181
" for reading. Only a 32-bit value can be read in using this function, "
7282
"regardless of the native size of :c:type:`long`."
7383
msgstr ""
84+
"从打开用于读取的 :c:type:`FILE\\*` 的对应数据流返回一个 C :c:type:`long`。 使用此函数只能读取 32 "
85+
"位的值,无论本机 :c:type:`long` 类型的长度如何。"
7486

7587
#: ../../c-api/marshal.rst:50 ../../c-api/marshal.rst:60
7688
msgid ""
7789
"On error, sets the appropriate exception (:exc:`EOFError`) and returns "
7890
"``-1``."
79-
msgstr ""
91+
msgstr "发生错误时,将设置适当的异常 (:exc:`EOFError`) 并返回 ``-1``。"
8092

8193
#: ../../c-api/marshal.rst:56
8294
msgid ""

0 commit comments

Comments
 (0)