|
1 | | -# SOME DESCRIPTIVE TITLE. |
2 | | -# Copyright (C) 2001-2023, Python Software Foundation |
3 | | -# This file is distributed under the same license as the Python package. |
4 | | -# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. |
5 | 1 | # |
6 | | -# Translators: |
7 | | - |
8 | | - |
9 | | -# Freesand Leo <[email protected]>, 2023 |
10 | | -# |
11 | | -#, fuzzy |
12 | 2 | msgid "" |
13 | 3 | msgstr "" |
14 | | -"Project-Id-Version: Python 3.12\n" |
15 | | -"Report-Msgid-Bugs-To: \n" |
16 | | -"POT-Creation-Date: 2023-07-28 14:13+0000\n" |
17 | | -"PO-Revision-Date: 2021-06-28 00:47+0000\n" |
18 | | -" Last-Translator: Freesand Leo <[email protected]>, 2023\n" |
19 | 4 | "Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n" |
20 | | -"MIME-Version: 1.0\n" |
21 | | -"Content-Type: text/plain; charset=UTF-8\n" |
22 | | -"Content-Transfer-Encoding: 8bit\n" |
23 | 5 | "Language: zh_CN\n" |
24 | 6 | "Plural-Forms: nplurals=1; plural=0;\n" |
25 | | - |
26 | | -#: ../../c-api/bytearray.rst:6 |
27 | | -msgid "Byte Array Objects" |
28 | | -msgstr "字节数组对象" |
29 | | - |
30 | | -#: ../../c-api/bytearray.rst:13 |
31 | | -msgid "" |
32 | | -"This subtype of :c:type:`PyObject` represents a Python bytearray object." |
33 | | -msgstr "这个 :c:type:`PyObject` 的子类型表示一个 Python 字节数组对象。" |
34 | | - |
35 | | -#: ../../c-api/bytearray.rst:18 |
36 | | -msgid "" |
37 | | -"This instance of :c:type:`PyTypeObject` represents the Python bytearray " |
38 | | -"type; it is the same object as :class:`bytearray` in the Python layer." |
39 | | -msgstr "" |
40 | | -"Python bytearray 类型表示为 :c:type:`PyTypeObject` 的实例;这与Python层面的 " |
41 | | -":class:`bytearray` 是相同的对象。" |
42 | | - |
43 | | -#: ../../c-api/bytearray.rst:23 |
44 | | -msgid "Type check macros" |
45 | | -msgstr "类型检查宏" |
46 | | - |
47 | | -#: ../../c-api/bytearray.rst:27 |
48 | | -msgid "" |
49 | | -"Return true if the object *o* is a bytearray object or an instance of a " |
50 | | -"subtype of the bytearray type. This function always succeeds." |
51 | | -msgstr "如果对象 *o* 是一个 bytearray 对象或者 bytearray 类型的子类型的实例则返回真值。 此函数总是会成功执行。" |
52 | | - |
53 | | -#: ../../c-api/bytearray.rst:33 |
54 | | -msgid "" |
55 | | -"Return true if the object *o* is a bytearray object, but not an instance of " |
56 | | -"a subtype of the bytearray type. This function always succeeds." |
57 | | -msgstr "如果对象 *o* 是一个 bytearray 对象但不是 bytearray 类型的子类型的实例则返回真值。 此函数总是会成功执行。" |
58 | | - |
59 | | -#: ../../c-api/bytearray.rst:38 |
60 | | -msgid "Direct API functions" |
61 | | -msgstr "直接 API 函数" |
62 | | - |
63 | | -#: ../../c-api/bytearray.rst:42 |
64 | | -msgid "" |
65 | | -"Return a new bytearray object from any object, *o*, that implements the " |
66 | | -":ref:`buffer protocol <bufferobjects>`." |
67 | | -msgstr "根据任何实现了 :ref:`缓冲区协议<bufferobjects>` 的对象 *o*,返回一个新的字节数组对象。" |
68 | | - |
69 | | -#: ../../c-api/bytearray.rst:48 |
70 | | -msgid "" |
71 | | -"Create a new bytearray object from *string* and its length, *len*. On " |
72 | | -"failure, ``NULL`` is returned." |
73 | | -msgstr "根据 *string* 及其长度 *len* 创建一个新的 bytearray 对象。 当失败时返回 ``NULL``。" |
74 | | - |
75 | | -#: ../../c-api/bytearray.rst:54 |
76 | | -msgid "" |
77 | | -"Concat bytearrays *a* and *b* and return a new bytearray with the result." |
78 | | -msgstr "连接字节数组 *a* 和 *b* 并返回一个带有结果的新的字节数组。" |
79 | | - |
80 | | -#: ../../c-api/bytearray.rst:59 |
81 | | -msgid "Return the size of *bytearray* after checking for a ``NULL`` pointer." |
82 | | -msgstr "在检查 ``NULL`` 指针后返回 *bytearray* 的大小。" |
83 | | - |
84 | | -#: ../../c-api/bytearray.rst:64 |
85 | | -msgid "" |
86 | | -"Return the contents of *bytearray* as a char array after checking for a " |
87 | | -"``NULL`` pointer. The returned array always has an extra null byte " |
88 | | -"appended." |
89 | | -msgstr "在检查 ``NULL`` 指针后返回将 *bytearray* 返回为一个字符数组。 返回的数组总是会附加一个额外的空字节。" |
90 | | - |
91 | | -#: ../../c-api/bytearray.rst:71 |
92 | | -msgid "Resize the internal buffer of *bytearray* to *len*." |
93 | | -msgstr "将 *bytearray* 的内部缓冲区的大小调整为 *len*。" |
94 | | - |
95 | | -#: ../../c-api/bytearray.rst:74 |
96 | | -msgid "Macros" |
97 | | -msgstr "宏" |
98 | | - |
99 | | -#: ../../c-api/bytearray.rst:76 |
100 | | -msgid "These macros trade safety for speed and they don't check pointers." |
101 | | -msgstr "这些宏减低安全性以换取性能,它们不检查指针。" |
102 | | - |
103 | | -#: ../../c-api/bytearray.rst:80 |
104 | | -msgid "Similar to :c:func:`PyByteArray_AsString`, but without error checking." |
105 | | -msgstr "类似于 :c:func:`PyByteArray_AsString`,但是不带错误检测。" |
106 | | - |
107 | | -#: ../../c-api/bytearray.rst:85 |
108 | | -msgid "Similar to :c:func:`PyByteArray_Size`, but without error checking." |
109 | | -msgstr "类似于 :c:func:`PyByteArray_Size`,但是不带错误检测。" |
110 | | - |
111 | | -#: ../../c-api/bytearray.rst:8 |
112 | | -msgid "object" |
113 | | -msgstr "object -- 对象" |
114 | | - |
115 | | -#: ../../c-api/bytearray.rst:8 |
116 | | -msgid "bytearray" |
117 | | -msgstr "bytearray" |
0 commit comments