File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -1335,6 +1335,10 @@ msgid ""
1335
1335
"original values stored in ``sys.__stdin__``, ``sys.__stdout__``, and "
1336
1336
"``sys.__stderr__`` are not touched, but may be ``None``."
1337
1337
msgstr ""
1338
+ "在默认情况下,IDLE 会在单独的 OS 进程中运行用户代码而不是在运行 Shell 和编辑器的用户界面进程中运行。 在执行进程中,它会将 "
1339
+ "``sys.stdin``, ``sys.stdout`` 和 ``sys.stderr`` 替换为从 Shell 窗口获取输入并向其发送输出的对象。 "
1340
+ "保存在 ``sys.__stdin__``, ``sys.__stdout__`` 和 ``sys.__stderr__`` "
1341
+ "中的原始值不会被改变,但可能会为 ``None``。"
1338
1342
1339
1343
#: ../../library/idle.rst:720
1340
1344
msgid ""
@@ -1353,6 +1357,9 @@ msgid ""
1353
1357
" be started in a command line window. The secondary subprocess will then be"
1354
1358
" attached to that window for input and output."
1355
1359
msgstr ""
1360
+ "IDLE 的标准流替换不会被执行进程中创建的子进程所继承,不论它是由用户代码直接创建还是由 multiprocessing 之类的模块创建的。 "
1361
+ "如果这样的子进程使用了 ``input`` 获取 sys.stdin 或者使用了 ``print`` 或 ``write`` 输出到 "
1362
+ "sys.stdout 或 sys.stderr,则应当在命令行窗口中启动 IDLE。 这样二级子进程将会被附加到该窗口进行输出和输出。"
1356
1363
1357
1364
#: ../../library/idle.rst:732
1358
1365
msgid ""
You can’t perform that action at this time.
0 commit comments