File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- {"translation" : " 90.63%" , "updated_at" : " 2024-01-24T08 :25:18Z " }
1+ {"translation" : " 90.63%" , "updated_at" : " 2024-01-24T16 :25:10Z " }
Original file line number Diff line number Diff line change @@ -1593,6 +1593,8 @@ msgid ""
15931593"same process and perhaps even in the same thread. Sub-interpreters allow you"
15941594" to do that."
15951595msgstr ""
1596+ "虽然在大多数用例中,你都只会嵌入一个单独的 Python 解释器,但某些场景需要你在同一个进程甚至同一个线程中创建多个独立的解释器。 "
1597+ "子解释器让你能够做到这一点。"
15961598
15971599#: ../../c-api/init.rst:1267
15981600msgid ""
@@ -1604,13 +1606,16 @@ msgid ""
16041606"runtime finalization. The :c:func:`PyInterpreterState_Main` function "
16051607"returns a pointer to its state."
16061608msgstr ""
1609+ "“主”解释器是在运行时初始化时创建的第一个解释器。 它通常是一个进程中唯一的 Python 解释器。 "
1610+ "与子解释器不同,主解释器具有唯一的进程全局责任比如信号处理等。 它还负责在运行时初始化期间的执行并且通常还是运行时最终化期间的活动解释器。 "
1611+ ":c:func:`PyInterpreterState_Main` 函数将返回一个指向其状态的指针。"
16071612
16081613#: ../../c-api/init.rst:1274
16091614msgid ""
16101615"You can switch between sub-interpreters using the "
16111616":c:func:`PyThreadState_Swap` function. You can create and destroy them using"
16121617" the following functions:"
1613- msgstr ""
1618+ msgstr "你可以使用 :c:func:`PyThreadState_Swap` 函数在子解释器之间进行切换。 你可以使用下列函数来创建和销毁它们: "
16141619
16151620#: ../../c-api/init.rst:1288
16161621msgid ""
You can’t perform that action at this time.
0 commit comments