@@ -13,7 +13,7 @@ msgid ""
1313msgstr ""
1414"Project-Id-Version : Python 3.11\n "
1515"Report-Msgid-Bugs-To : \n "
16- "POT-Creation-Date : 2023-09-08 14:42+0000\n "
16+ "POT-Creation-Date : 2023-09-15 14:42+0000\n "
1717"PO-Revision-Date : 2023-05-24 02:09+0000\n "
1818"
Last-Translator :
Rafael Fontenelle <[email protected] >, 2023\n "
1919"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -578,19 +578,22 @@ msgid ""
578578"If :c:func:`Py_FinalizeEx` is called, this function will need to be called "
579579"again in order to affect subsequent calls to :c:func:`Py_Initialize`."
580580msgstr ""
581+ "如果调用了 :c:func:`Py_FinalizeEx`,则需要再次调用该函数以便影响对 :c:func:`Py_Initialize` 的后续调用。"
581582
582583#: ../../c-api/init.rst:348
583584msgid ""
584585"Returns ``0`` if successful, a nonzero value on error (e.g. calling after "
585586"the interpreter has already been initialized)."
586- msgstr ""
587+ msgstr "成功时返回 ``0``,出错时返回非零值(例如在解释器已被初始化后再调用)。 "
587588
588589#: ../../c-api/init.rst:363
589590msgid ""
590591"This API is kept for backward compatibility: setting "
591592":c:member:`PyConfig.program_name` should be used instead, see :ref:`Python "
592593"Initialization Configuration <init-config>`."
593594msgstr ""
595+ "此 API 被保留用于向下兼容:应当改为设置 :c:member:`PyConfig.program_name`,参见 :ref:`Python "
596+ "初始化配置 <init-config>`。"
594597
595598#: ../../c-api/init.rst:367
596599msgid ""
@@ -605,6 +608,10 @@ msgid ""
605608"execution. No code in the Python interpreter will change the contents of "
606609"this storage."
607610msgstr ""
611+ "如果要调用该函数,应当在首次调用 :c:func:`Py_Initialize` 之前调用它。 它将告诉解释器程序的 :c:func:`main` "
612+ "函数的 ``argv[0]`` 参数的值(转换为宽字符)。 :c:func:`Py_GetPath` "
613+ "和下面的某些其他函数会使用它在相对于解释器的位置上查找可执行文件的 Python 运行时库。 默认值是 ``'python'``。 "
614+ "参数应当指向静态存储中的一个以零值结束的宽字符串,其内容在程序执行期间不会发生改变。 Python 解释器中的任何代码都不会改变该存储的内容。"
608615
609616#: ../../c-api/init.rst:378 ../../c-api/init.rst:529 ../../c-api/init.rst:644
610617#: ../../c-api/init.rst:680 ../../c-api/init.rst:706
@@ -619,18 +626,19 @@ msgid ""
619626"default. The returned string points into static storage; the caller should "
620627"not modify its value."
621628msgstr ""
629+ "返回用 :c:func:`Py_SetProgramName` 设置的程序名称,或默认的名称。 返回的字符串指向静态存储;调用者不应修改其值。"
622630
623631#: ../../c-api/init.rst:392 ../../c-api/init.rst:411 ../../c-api/init.rst:452
624632#: ../../c-api/init.rst:471 ../../c-api/init.rst:495 ../../c-api/init.rst:718
625633msgid ""
626634"This function should not be called before :c:func:`Py_Initialize`, otherwise"
627635" it returns ``NULL``."
628- msgstr ""
636+ msgstr "此函数不应在 :c:func:`Py_Initialize` 之前被调用,否则将返回 ``NULL``。 "
629637
630638#: ../../c-api/init.rst:395 ../../c-api/init.rst:414 ../../c-api/init.rst:455
631639#: ../../c-api/init.rst:474 ../../c-api/init.rst:500 ../../c-api/init.rst:721
632640msgid "It now returns ``NULL`` if called before :c:func:`Py_Initialize`."
633- msgstr ""
641+ msgstr "现在如果它在 :c:func:`Py_Initialize` 之前被调用将返回 ``NULL``。 "
634642
635643#: ../../c-api/init.rst:401
636644msgid ""
@@ -799,20 +807,20 @@ msgstr "``'Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam'``"
799807msgid ""
800808"The returned string points into static storage; the caller should not modify"
801809" its value. The value is available to Python code as ``sys.copyright``."
802- msgstr ""
810+ msgstr "返回的字符串指向静态存储;调用者不应修改其值。 Python 代码可通过 ``sys.copyright`` 获取该值。 "
803811
804812#: ../../c-api/init.rst:586
805813msgid ""
806814"Return an indication of the compiler used to build the current Python "
807815"version, in square brackets, for example::"
808- msgstr ""
816+ msgstr "返回用于编译当前 Python 版本的编译器指令,为带方括号的形式,例如:: "
809817
810818#: ../../c-api/init.rst:593 ../../c-api/init.rst:607
811819msgid ""
812820"The returned string points into static storage; the caller should not modify"
813821" its value. The value is available to Python code as part of the variable "
814822"``sys.version``."
815- msgstr ""
823+ msgstr "返回的字符串指向静态存储;调用者不应修改其值。 Python 代码可以从变量 ``sys.version`` 中获取该值。 "
816824
817825#: ../../c-api/init.rst:600
818826msgid ""
@@ -1128,11 +1136,11 @@ msgstr ""
11281136
11291137#: ../../c-api/init.rst:921
11301138msgid "This thread's interpreter state."
1131- msgstr ""
1139+ msgstr "该线程的解释器状态。 "
11321140
11331141#: ../../c-api/init.rst:932
11341142msgid "Deprecated function which does nothing."
1135- msgstr ""
1143+ msgstr "不执行任何操作的已弃用函数。 "
11361144
11371145#: ../../c-api/init.rst:934
11381146msgid ""
@@ -1141,13 +1149,13 @@ msgstr "在 Python 3.6 及更老的版本中,此函数会在 GIL 不存在时
11411149
11421150#: ../../c-api/init.rst:936
11431151msgid "The function now does nothing."
1144- msgstr ""
1152+ msgstr "此函数现在不执行任何操作。 "
11451153
11461154#: ../../c-api/init.rst:939
11471155msgid ""
11481156"This function is now called by :c:func:`Py_Initialize()`, so you don't have "
11491157"to call it yourself anymore."
1150- msgstr ""
1158+ msgstr "该函数现在由 :c:func:`Py_Initialize()` 调用,因此你无需再自行调用它。 "
11511159
11521160#: ../../c-api/init.rst:943
11531161msgid ""
@@ -2298,67 +2306,67 @@ msgstr "Py_GetPath()"
22982306
22992307#: ../../c-api/init.rst:461
23002308msgid "executable (in module sys)"
2301- msgstr ""
2309+ msgstr "executable (在 sys 模块中) "
23022310
23032311#: ../../c-api/init.rst:480
23042312msgid "Py_SetPath()"
2305- msgstr ""
2313+ msgstr "Py_SetPath() "
23062314
23072315#: ../../c-api/init.rst:549 ../../c-api/init.rst:591 ../../c-api/init.rst:605
23082316msgid "version (in module sys)"
2309- msgstr ""
2317+ msgstr "version (在 sys 模块中) "
23102318
23112319#: ../../c-api/init.rst:561
23122320msgid "platform (in module sys)"
2313- msgstr ""
2321+ msgstr "platform (在 sys 模块中) "
23142322
23152323#: ../../c-api/init.rst:578
23162324msgid "copyright (in module sys)"
2317- msgstr ""
2325+ msgstr "copyright (在 sys 模块中) "
23182326
23192327#: ../../c-api/init.rst:614
23202328msgid "Py_FatalError()"
2321- msgstr ""
2329+ msgstr "Py_FatalError() "
23222330
23232331#: ../../c-api/init.rst:614
23242332msgid "argv (in module sys)"
2325- msgstr ""
2333+ msgstr "argv (在 sys 模块中) "
23262334
23272335#: ../../c-api/init.rst:730
23282336msgid "global interpreter lock"
23292337msgstr "global interpreter lock -- 全局解释器锁"
23302338
23312339#: ../../c-api/init.rst:730
23322340msgid "interpreter lock"
2333- msgstr ""
2341+ msgstr "解释器锁 "
23342342
23352343#: ../../c-api/init.rst:730
23362344msgid "lock, interpreter"
2337- msgstr ""
2345+ msgstr "锁,解释器 "
23382346
23392347#: ../../c-api/init.rst:743
23402348msgid "setswitchinterval() (in module sys)"
2341- msgstr ""
2349+ msgstr "setswitchinterval() (在 sys 模块中) "
23422350
23432351#: ../../c-api/init.rst:752 ../../c-api/init.rst:752
23442352msgid "PyThreadState"
2345- msgstr ""
2353+ msgstr "PyThreadState "
23462354
23472355#: ../../c-api/init.rst:779
23482356msgid "Py_BEGIN_ALLOW_THREADS"
2349- msgstr ""
2357+ msgstr "Py_BEGIN_ALLOW_THREADS "
23502358
23512359#: ../../c-api/init.rst:779
23522360msgid "Py_END_ALLOW_THREADS"
2353- msgstr ""
2361+ msgstr "Py_END_ALLOW_THREADS "
23542362
23552363#: ../../c-api/init.rst:795 ../../c-api/init.rst:926
23562364msgid "PyEval_RestoreThread()"
2357- msgstr ""
2365+ msgstr "PyEval_RestoreThread() "
23582366
23592367#: ../../c-api/init.rst:795 ../../c-api/init.rst:926
23602368msgid "PyEval_SaveThread()"
2361- msgstr ""
2369+ msgstr "PyEval_SaveThread() "
23622370
23632371#: ../../c-api/init.rst:926
23642372msgid "PyEval_AcquireThread()"
0 commit comments