11# SOME DESCRIPTIVE TITLE.
2- # Copyright (C) 2001-2023 , Python Software Foundation
2+ # Copyright (C) 2001-2024 , Python Software Foundation
33# This file is distributed under the same license as the Python package.
44# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55#
66# Translators:
77# Alpha Du <[email protected] >, 20218- # Freesand Leo <[email protected] >, 2023 8+ # Freesand Leo <[email protected] >, 2024 99#
1010#, fuzzy
1111msgid ""
1212msgstr ""
1313"Project-Id-Version : Python 3.12\n "
1414"Report-Msgid-Bugs-To : \n "
15- "POT-Creation-Date : 2023-07-28 14:13 +0000\n "
15+ "POT-Creation-Date : 2024-02-02 15:40 +0000\n "
1616"PO-Revision-Date : 2021-06-28 00:49+0000\n "
17- "
Last-Translator :
Freesand Leo <[email protected] >, 2023 \n "
17+ "
Last-Translator :
Freesand Leo <[email protected] >, 2024 \n "
1818"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
1919"MIME-Version : 1.0\n "
2020"Content-Type : text/plain; charset=UTF-8\n "
@@ -45,15 +45,23 @@ msgstr ""
4545"从提供缓冲区接口的对象创建 memoryview 对象。 如果 *obj* 支持可写缓冲区导出,则 memoryview "
4646"对象将可以被读/写,否则它可能是只读的,也可以是导出器自行决定的读/写。"
4747
48- #: ../../c-api/memoryview.rst:25
48+ #: ../../c-api/memoryview.rst:26
49+ msgid "Flag to request a readonly buffer."
50+ msgstr "用于请求只读缓冲区的旗标。"
51+
52+ #: ../../c-api/memoryview.rst:31
53+ msgid "Flag to request a writable buffer."
54+ msgstr "用于请求可写缓冲区的旗标。"
55+
56+ #: ../../c-api/memoryview.rst:36
4957msgid ""
5058"Create a memoryview object using *mem* as the underlying buffer. *flags* can"
5159" be one of :c:macro:`PyBUF_READ` or :c:macro:`PyBUF_WRITE`."
5260msgstr ""
5361"使用 *mem* 作为底层缓冲区创建一个 memoryview 对象。 *flags* 可以是 :c:macro:`PyBUF_READ` 或者 "
5462":c:macro:`PyBUF_WRITE` 之一."
5563
56- #: ../../c-api/memoryview.rst:32
64+ #: ../../c-api/memoryview.rst:43
5765msgid ""
5866"Create a memoryview object wrapping the given buffer structure *view*. For "
5967"simple byte buffers, :c:func:`PyMemoryView_FromMemory` is the preferred "
@@ -62,7 +70,7 @@ msgstr ""
6270"创建一个包含给定缓冲区结构 *view* 的 memoryview 对象。 "
6371"对于简单的字节缓冲区,:c:func:`PyMemoryView_FromMemory` 是首选函数。"
6472
65- #: ../../c-api/memoryview.rst:38
73+ #: ../../c-api/memoryview.rst:49
6674msgid ""
6775"Create a memoryview object to a :term:`contiguous` chunk of memory (in "
6876"either 'C' or 'F'ortran *order*) from an object that defines the buffer "
@@ -74,7 +82,12 @@ msgstr ""
7482"*order* 中)。 如果内存是连续的,则 memoryview 对象指向原始内存。 否则,复制并且 memoryview 指向新的 bytes "
7583"对象。"
7684
77- #: ../../c-api/memoryview.rst:47
85+ #: ../../c-api/memoryview.rst:55
86+ msgid ""
87+ "*buffertype* can be one of :c:macro:`PyBUF_READ` or :c:macro:`PyBUF_WRITE`."
88+ msgstr "*buffertype* 可以为 :c:macro:`PyBUF_READ` 或 :c:macro:`PyBUF_WRITE` 中的一个。"
89+
90+ #: ../../c-api/memoryview.rst:60
7891msgid ""
7992"Return true if the object *obj* is a memoryview object. It is not currently"
8093" allowed to create subclasses of :class:`memoryview`. This function always "
@@ -83,7 +96,7 @@ msgstr ""
8396"如果 *obj* 是一个 memoryview 对象则返回真值。 目前不允许创建 :class:`memoryview` 的子类。 "
8497"此函数总是会成功执行。"
8598
86- #: ../../c-api/memoryview.rst:54
99+ #: ../../c-api/memoryview.rst:67
87100msgid ""
88101"Return a pointer to the memoryview's private copy of the exporter's buffer. "
89102"*mview* **must** be a memoryview instance; this macro doesn't check its "
@@ -92,7 +105,7 @@ msgstr ""
92105"返回指向 memoryview 的导出缓冲区私有副本的指针。 *mview* **必须** 是一个 memoryview "
93106"实例;这个宏不检查它的类型,你必须自己检查,否则你将面临崩溃风险。"
94107
95- #: ../../c-api/memoryview.rst:60
108+ #: ../../c-api/memoryview.rst:73
96109msgid ""
97110"Return either a pointer to the exporting object that the memoryview is based"
98111" on or ``NULL`` if the memoryview has been created by one of the functions "
0 commit comments