@@ -12,7 +12,7 @@ msgid ""
1212msgstr ""
1313"Project-Id-Version : Python 3.10\n "
1414"Report-Msgid-Bugs-To : \n "
15- "POT-Creation-Date : 2023-09-08 15:14 +0000\n "
15+ "POT-Creation-Date : 2023-09-15 15:11 +0000\n "
1616"PO-Revision-Date : 2022-11-05 17:21+0000\n "
1717"
Last-Translator :
Rafael Fontenelle <[email protected] >, 2023\n "
1818"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -561,12 +561,13 @@ msgid ""
561561"If :c:func:`Py_FinalizeEx` is called, this function will need to be called "
562562"again in order to affect subsequent calls to :c:func:`Py_Initialize`."
563563msgstr ""
564+ "如果调用了 :c:func:`Py_FinalizeEx`,则需要再次调用该函数以便影响对 :c:func:`Py_Initialize` 的后续调用。"
564565
565566#: ../../c-api/init.rst:343
566567msgid ""
567568"Returns ``0`` if successful, a nonzero value on error (e.g. calling after "
568569"the interpreter has already been initialized)."
569- msgstr ""
570+ msgstr "成功时返回 ``0``,出错时返回非零值(例如在解释器已被初始化后再调用)。 "
570571
571572#: ../../c-api/init.rst:356
572573msgid ""
@@ -581,6 +582,10 @@ msgid ""
581582"execution. No code in the Python interpreter will change the contents of "
582583"this storage."
583584msgstr ""
585+ "如果要调用该函数,应当在首次调用 :c:func:`Py_Initialize` 之前调用它。 它将告诉解释器程序的 :c:func:`main` "
586+ "函数的 ``argv[0]`` 参数的值(转换为宽字符)。 :c:func:`Py_GetPath` "
587+ "和下面的某些其他函数会使用它在相对于解释器的位置上查找可执行文件的 Python 运行时库。 默认值是 ``'python'``。 "
588+ "参数应当指向静态存储中的一个以零值结束的宽字符串,其内容在程序执行期间不会发生改变。 Python 解释器中的任何代码都不会改变该存储的内容。"
584589
585590#: ../../c-api/init.rst:367 ../../c-api/init.rst:511 ../../c-api/init.rst:617
586591#: ../../c-api/init.rst:644 ../../c-api/init.rst:661
@@ -595,18 +600,19 @@ msgid ""
595600"default. The returned string points into static storage; the caller should "
596601"not modify its value."
597602msgstr ""
603+ "返回用 :c:func:`Py_SetProgramName` 设置的程序名称,或默认的名称。 返回的字符串指向静态存储;调用者不应修改其值。"
598604
599605#: ../../c-api/init.rst:379 ../../c-api/init.rst:398 ../../c-api/init.rst:439
600606#: ../../c-api/init.rst:458 ../../c-api/init.rst:482 ../../c-api/init.rst:671
601607msgid ""
602608"This function should not be called before :c:func:`Py_Initialize`, otherwise"
603609" it returns ``NULL``."
604- msgstr ""
610+ msgstr "此函数不应在 :c:func:`Py_Initialize` 之前被调用,否则将返回 ``NULL``。 "
605611
606612#: ../../c-api/init.rst:382 ../../c-api/init.rst:401 ../../c-api/init.rst:442
607613#: ../../c-api/init.rst:461 ../../c-api/init.rst:487 ../../c-api/init.rst:674
608614msgid "It now returns ``NULL`` if called before :c:func:`Py_Initialize`."
609- msgstr ""
615+ msgstr "现在如果它在 :c:func:`Py_Initialize` 之前被调用将返回 ``NULL``。 "
610616
611617#: ../../c-api/init.rst:388
612618msgid ""
@@ -760,20 +766,20 @@ msgstr "``'Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam'``"
760766msgid ""
761767"The returned string points into static storage; the caller should not modify"
762768" its value. The value is available to Python code as ``sys.copyright``."
763- msgstr ""
769+ msgstr "返回的字符串指向静态存储;调用者不应修改其值。 Python 代码可通过 ``sys.copyright`` 获取该值。 "
764770
765771#: ../../c-api/init.rst:564
766772msgid ""
767773"Return an indication of the compiler used to build the current Python "
768774"version, in square brackets, for example::"
769- msgstr ""
775+ msgstr "返回用于编译当前 Python 版本的编译器指令,为带方括号的形式,例如:: "
770776
771777#: ../../c-api/init.rst:571 ../../c-api/init.rst:585
772778msgid ""
773779"The returned string points into static storage; the caller should not modify"
774780" its value. The value is available to Python code as part of the variable "
775781"``sys.version``."
776- msgstr ""
782+ msgstr "返回的字符串指向静态存储;调用者不应修改其值。 Python 代码可以从变量 ``sys.version`` 中获取该值。 "
777783
778784#: ../../c-api/init.rst:578
779785msgid ""
@@ -1062,7 +1068,7 @@ msgstr ""
10621068
10631069#: ../../c-api/init.rst:882
10641070msgid "Deprecated function which does nothing."
1065- msgstr ""
1071+ msgstr "不执行任何操作的已弃用函数。 "
10661072
10671073#: ../../c-api/init.rst:884
10681074msgid ""
@@ -1071,13 +1077,13 @@ msgstr "在 Python 3.6 及更老的版本中,此函数会在 GIL 不存在时
10711077
10721078#: ../../c-api/init.rst:886
10731079msgid "The function now does nothing."
1074- msgstr ""
1080+ msgstr "此函数现在不执行任何操作。 "
10751081
10761082#: ../../c-api/init.rst:889
10771083msgid ""
10781084"This function is now called by :c:func:`Py_Initialize()`, so you don't have "
10791085"to call it yourself anymore."
1080- msgstr ""
1086+ msgstr "该函数现在由 :c:func:`Py_Initialize()` 调用,因此你无需再自行调用它。 "
10811087
10821088#: ../../c-api/init.rst:893
10831089msgid ""
0 commit comments