@@ -164,7 +164,7 @@ msgstr ""
164164msgid ""
165165"Allocates *n* bytes and returns a pointer of type :c:type:`void*` to the "
166166"allocated memory, or ``NULL`` if the request fails."
167- msgstr ""
167+ msgstr "分配 *n* 个字节并返回一个指向分配的内存的 :c:type:`void*` 类型指针,如果请求失败则返回 ``NULL``。 "
168168
169169#: ../../c-api/memory.rst:115
170170msgid ""
@@ -181,6 +181,8 @@ msgid ""
181181"a pointer of type :c:type:`void*` to the allocated memory, or ``NULL`` if "
182182"the request fails. The memory is initialized to zeros."
183183msgstr ""
184+ "分配 *nelem* 个元素,每个元素的大小为 *elsize* 字节,并返回指向分配的内存的 :c:type:`void*` "
185+ "类型指针,如果请求失败则返回 ``NULL``。 内存会被初始化为零。"
184186
185187#: ../../c-api/memory.rst:126
186188msgid ""
@@ -327,6 +329,8 @@ msgid ""
327329"of memory. Returns a pointer cast to :c:type:`TYPE*`. The memory will not "
328330"have been initialized in any way."
329331msgstr ""
332+ "与 :c:func:`PyMem_Malloc` 相同,但会分配 ``(n * sizeof(TYPE))`` 字节的内存。 返回一个转换为 "
333+ ":c:type:`TYPE*` 的指针。 内存将不会以任何方式被初始化。"
330334
331335#: ../../c-api/memory.rst:242
332336msgid ""
@@ -335,6 +339,8 @@ msgid ""
335339"return, *p* will be a pointer to the new memory area, or ``NULL`` in the "
336340"event of failure."
337341msgstr ""
342+ "与 :c:func:`PyMem_Realloc` 相同,但内存块的大小被调整为 ``(n * sizeof(TYPE))`` 字节。 返回一个转换为 "
343+ ":c:type:`TYPE*` 类型的指针。 返回时,*p* 将为指向新内存区域的指针,如果失败则返回 ``NULL``。"
338344
339345#: ../../c-api/memory.rst:247
340346msgid ""
0 commit comments