File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1
- {"translation" : " 89.99%" , "updated_at" : " 2024-01-24T08:09:58Z " }
1
+ {"translation" : " 89.99%" , "updated_at" : " 2024-01-24T16:10:13Z " }
Original file line number Diff line number Diff line change @@ -1495,6 +1495,8 @@ msgid ""
1495
1495
"same process and perhaps even in the same thread. Sub-interpreters allow you"
1496
1496
" to do that."
1497
1497
msgstr ""
1498
+ "虽然在大多数用例中,你都只会嵌入一个单独的 Python 解释器,但某些场景需要你在同一个进程甚至同一个线程中创建多个独立的解释器。 "
1499
+ "子解释器让你能够做到这一点。"
1498
1500
1499
1501
#: ../../c-api/init.rst:1179
1500
1502
msgid ""
@@ -1506,13 +1508,16 @@ msgid ""
1506
1508
"runtime finalization. The :c:func:`PyInterpreterState_Main` function "
1507
1509
"returns a pointer to its state."
1508
1510
msgstr ""
1511
+ "“主”解释器是在运行时初始化时创建的第一个解释器。 它通常是一个进程中唯一的 Python 解释器。 "
1512
+ "与子解释器不同,主解释器具有唯一的进程全局责任比如信号处理等。 它还负责在运行时初始化期间的执行并且通常还是运行时最终化期间的活动解释器。 "
1513
+ ":c:func:`PyInterpreterState_Main` 函数将返回一个指向其状态的指针。"
1509
1514
1510
1515
#: ../../c-api/init.rst:1186
1511
1516
msgid ""
1512
1517
"You can switch between sub-interpreters using the "
1513
1518
":c:func:`PyThreadState_Swap` function. You can create and destroy them using"
1514
1519
" the following functions:"
1515
- msgstr ""
1520
+ msgstr "你可以使用 :c:func:`PyThreadState_Swap` 函数在子解释器之间进行切换。 你可以使用下列函数来创建和销毁它们: "
1516
1521
1517
1522
#: ../../c-api/init.rst:1200
1518
1523
msgid ""
You can’t perform that action at this time.
0 commit comments