55#
66# Translators:
778- # Freesand Leo <[email protected] >, 201998# allenjuly7 <[email protected] >, 20191091110# Vegetables <[email protected] >, 20191211# ppcfish <[email protected] >, 20191312# Shengjing Zhu <[email protected] >, 2019141314+ # Freesand Leo <[email protected] >, 20201515#
1616#, fuzzy
1717msgid ""
@@ -20,7 +20,7 @@ msgstr ""
2020"Report-Msgid-Bugs-To : \n "
2121"POT-Creation-Date : 2020-02-09 12:40+0000\n "
2222"PO-Revision-Date : 2017-02-16 17:33+0000\n "
23- "Last-Translator : 昌伟 任 <small_pupil@126 .com>, 2019 \n "
23+ "Last-Translator : Freesand Leo <yuqinju@163 .com>, 2020 \n "
2424"Language-Team : Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n "
2525"MIME-Version : 1.0\n "
2626"Content-Type : text/plain; charset=UTF-8\n "
@@ -68,13 +68,16 @@ msgid ""
6868" and ``NULL`` on failure. The parameter *v* must not be ``NULL``; it will "
6969"not be checked."
7070msgstr ""
71+ "成功时返回一个以字符串 *v* 的副本为值的新字节串对象,失败时返回 ``NULL``。 形参 *v* 不可为 ``NULL``;它不会被检查。"
7172
7273#: ../../c-api/bytes.rst:46
7374msgid ""
7475"Return a new bytes object with a copy of the string *v* as value and length "
7576"*len* on success, and ``NULL`` on failure. If *v* is ``NULL``, the contents"
7677" of the bytes object are uninitialized."
7778msgstr ""
79+ "成功时返回一个以字符串 *v* 的副本为值且长度为 *len* 的新字节串对象,失败时返回 ``NULL``。 如果 *v* 为 "
80+ "``NULL``,则不初始化字节串对象的内容。"
7881
7982#: ../../c-api/bytes.rst:53
8083msgid ""
@@ -85,6 +88,9 @@ msgid ""
8588"characters in the *format* string. The following format characters are "
8689"allowed:"
8790msgstr ""
91+ "接受一个 C :c:func:`printf` 风格的 *format* 字符串和可变数量的参数,计算结果 Python "
92+ "字节串对象的大小并返回参数值经格式化后的字节串对象。 可变数量的参数必须均为 C 类型并且必须恰好与 *format* 字符串中的格式字符相对应。 "
93+ "允许使用下列格式字符串:"
8894
8995#: ../../c-api/bytes.rst:68
9096msgid "Format Characters"
@@ -213,26 +219,28 @@ msgstr ":attr:`%s`"
213219
214220#: ../../c-api/bytes.rst:99
215221msgid "const char\\ *"
216- msgstr ""
222+ msgstr "const char \\ * "
217223
218224#: ../../c-api/bytes.rst:99
219225msgid "A null-terminated C character array."
220- msgstr ""
226+ msgstr "以 null 为终止符的 C 字符数组。 "
221227
222228#: ../../c-api/bytes.rst:102
223229msgid ":attr:`%p`"
224230msgstr ":attr:`%p`"
225231
226232#: ../../c-api/bytes.rst:102
227233msgid "const void\\ *"
228- msgstr ""
234+ msgstr "const void \\ * "
229235
230236#: ../../c-api/bytes.rst:102
231237msgid ""
232238"The hex representation of a C pointer. Mostly equivalent to "
233239"``printf(\" %p\" )`` except that it is guaranteed to start with the literal "
234240"``0x`` regardless of what the platform's ``printf`` yields."
235241msgstr ""
242+ "一个 C 指针的十六进制表示形式。 基本等价于 ``printf(\" %p\" )`` 但它会确保以字面值 ``0x`` 开头,不论系统平台上 "
243+ "``printf`` 的输出是什么。"
236244
237245#: ../../c-api/bytes.rst:111
238246msgid ""
@@ -264,7 +272,7 @@ msgstr "返回字节对象*o*中字节的长度。"
264272
265273#: ../../c-api/bytes.rst:137
266274msgid "Macro form of :c:func:`PyBytes_Size` but without error checking."
267- msgstr ""
275+ msgstr "宏版本的 :c:func:`PyBytes_Size` 但是不带错误检测。 "
268276
269277#: ../../c-api/bytes.rst:142
270278msgid ""
@@ -276,23 +284,29 @@ msgid ""
276284"deallocated. If *o* is not a bytes object at all, "
277285":c:func:`PyBytes_AsString` returns ``NULL`` and raises :exc:`TypeError`."
278286msgstr ""
287+ "返回对应 *o* 的内容的指针。 该指针指向 *o* 的内部缓冲区,其中包含 ``len(o) + 1`` 个字节。 "
288+ "缓冲区的最后一个字节总是为空,不论是否存在其他空字节。 该数据不可通过任何形式来修改,除非是刚使用 "
289+ "``PyBytes_FromStringAndSize(NULL, size)`` 创建该对象。 它不可被撤销分配。 如果 *o* "
290+ "根本不是一个字节串对象,则 :c:func:`PyBytes_AsString` 将返回 ``NULL`` 并引发 :exc:`TypeError`。"
279291
280292#: ../../c-api/bytes.rst:154
281293msgid "Macro form of :c:func:`PyBytes_AsString` but without error checking."
282- msgstr ""
294+ msgstr "宏版本的 :c:func:`PyBytes_AsString` 但是不带错误检测。 "
283295
284296#: ../../c-api/bytes.rst:159
285297msgid ""
286298"Return the null-terminated contents of the object *obj* through the output "
287299"variables *buffer* and *length*."
288- msgstr ""
300+ msgstr "通过输出变量 *buffer* 和 *length* 返回以 null 为终止符的对象 *obj* 的内容。 "
289301
290302#: ../../c-api/bytes.rst:162
291303msgid ""
292304"If *length* is ``NULL``, the bytes object may not contain embedded null "
293305"bytes; if it does, the function returns ``-1`` and a :exc:`ValueError` is "
294306"raised."
295307msgstr ""
308+ "如果 *length* 为 ``NULL``,字节串对象就不包含嵌入的空字节;如果包含,则该函数将返回 ``-1`` 并引发 "
309+ ":exc:`ValueError`。"
296310
297311#: ../../c-api/bytes.rst:166
298312msgid ""
0 commit comments