@@ -1453,6 +1453,8 @@ msgid ""
14531453"screen will not work. These include system-specific functions that "
14541454"determine whether a key has been pressed and if so, which."
14551455msgstr ""
1456+ "当 Shell 获得焦点时,它将控制键盘与屏幕。 这通常会保持透明,但一些直接访问键盘和屏幕的函数将会不起作用。 "
1457+ "这也包括那些确定是否有键被按下以及是哪个键被按下的系统专属函数。"
14561458
14571459#: ../../library/idle.rst:769
14581460msgid ""
@@ -1461,12 +1463,14 @@ msgid ""
14611463"and ``sys.setrecursionlimit`` to reduce the effect of the additional stack "
14621464"frames."
14631465msgstr ""
1466+ "在执行进程中运行的 IDLE 代码会向调用栈添加在其他情况下不存在的帧。 IDLE 包装了 ``sys.getrecursionlimit`` 和 "
1467+ "``sys.setrecursionlimit`` 以减少额外栈帧的影响。"
14641468
14651469#: ../../library/idle.rst:774
14661470msgid ""
14671471"When user code raises SystemExit either directly or by calling sys.exit, "
14681472"IDLE returns to a Shell prompt instead of exiting."
1469- msgstr ""
1473+ msgstr "当用户代码直接或者通过调用 sys.exit 引发 SystemExit 时,IDLE 将返回 Shell 提示符而非完全退出。 "
14701474
14711475#: ../../library/idle.rst:778
14721476msgid "User output in Shell"
@@ -1481,6 +1485,9 @@ msgid ""
14811485"programmed additions. Where it matters, Shell is designed for development "
14821486"rather than production runs."
14831487msgstr ""
1488+ "当一个程序输出文本时,结果将由相应的输出设备来确定。 当 IDLE 执行用户代码时,``sys.stdout`` 和 ``sys.stderr`` "
1489+ "会被连接到 IDLE Shell 的显示区。 它的某些特性是从底层的 Tk Text 部件继承而来。 其他特性则是程序所添加的。 总之,Shell "
1490+ "被设计用于开发环境而非生产环境运行。"
14841491
14851492#: ../../library/idle.rst:787
14861493msgid ""
@@ -1490,6 +1497,8 @@ msgid ""
14901497"output. A Windows console, for instance, keeps a user-settable 1 to 9999 "
14911498"lines, with 300 the default."
14921499msgstr ""
1500+ "例如,Shell 绝不会丢弃输出。 一个向 Shell 发送无限输出的程序将最终占满内存,导致内存错误。 "
1501+ "作为对比,某些系统文本模式窗口只会保留输出的最后 n 行。 例如,Windows 控制台可由用户设置保留 1 至 9999 行,默认为 300 行。"
14931502
14941503#: ../../library/idle.rst:793
14951504msgid ""
0 commit comments