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