@@ -1347,6 +1347,8 @@ msgid ""
13471347"screen will not work. These include system-specific functions that "
13481348"determine whether a key has been pressed and if so, which."
13491349msgstr ""
1350+ "当 Shell 获得焦点时,它将控制键盘与屏幕。 这通常会保持透明,但一些直接访问键盘和屏幕的函数将会不起作用。 "
1351+ "这也包括那些确定是否有键被按下以及是哪个键被按下的系统专属函数。"
13501352
13511353#: ../../library/idle.rst:725
13521354msgid ""
@@ -1368,6 +1370,8 @@ msgid ""
13681370"and ``sys.setrecursionlimit`` to reduce the effect of the additional stack "
13691371"frames."
13701372msgstr ""
1373+ "在执行进程中运行的 IDLE 代码会向调用栈添加在其他情况下不存在的帧。 IDLE 包装了 ``sys.getrecursionlimit`` 和 "
1374+ "``sys.setrecursionlimit`` 以减少额外栈帧的影响。"
13711375
13721376#: ../../library/idle.rst:736
13731377msgid ""
@@ -1382,7 +1386,7 @@ msgstr ""
13821386msgid ""
13831387"When user code raises SystemExit either directly or by calling sys.exit, "
13841388"IDLE returns to a Shell prompt instead of exiting."
1385- msgstr ""
1389+ msgstr "当用户代码直接或者通过调用 sys.exit 引发 SystemExit 时,IDLE 将返回 Shell 提示符而非完全退出。 "
13861390
13871391#: ../../library/idle.rst:744
13881392msgid "User output in Shell"
@@ -1397,6 +1401,9 @@ msgid ""
13971401"programmed additions. Where it matters, Shell is designed for development "
13981402"rather than production runs."
13991403msgstr ""
1404+ "当一个程序输出文本时,结果将由相应的输出设备来确定。 当 IDLE 执行用户代码时,``sys.stdout`` 和 ``sys.stderr`` "
1405+ "会被连接到 IDLE Shell 的显示区。 它的某些特性是从底层的 Tk Text 部件继承而来。 其他特性则是程序所添加的。 总之,Shell "
1406+ "被设计用于开发环境而非生产环境运行。"
14001407
14011408#: ../../library/idle.rst:753
14021409msgid ""
@@ -1406,6 +1413,8 @@ msgid ""
14061413"output. A Windows console, for instance, keeps a user-settable 1 to 9999 "
14071414"lines, with 300 the default."
14081415msgstr ""
1416+ "例如,Shell 绝不会丢弃输出。 一个向 Shell 发送无限输出的程序将最终占满内存,导致内存错误。 "
1417+ "作为对比,某些系统文本模式窗口只会保留输出的最后 n 行。 例如,Windows 控制台可由用户设置保留 1 至 9999 行,默认为 300 行。"
14091418
14101419#: ../../library/idle.rst:759
14111420msgid ""
0 commit comments