@@ -13,7 +13,7 @@ msgid ""
1313msgstr ""
1414"Project-Id-Version : Python 3.8\n "
1515"Report-Msgid-Bugs-To : \n "
16- "POT-Creation-Date : 2021-02-21 16:31 +0000\n "
16+ "POT-Creation-Date : 2021-02-24 16:36 +0000\n "
1717"PO-Revision-Date : 2020-05-30 12:04+0000\n "
1818"
Last-Translator :
Iterator <[email protected] >, 2020\n "
1919"Language-Team : Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -1291,6 +1291,18 @@ msgstr ""
12911291
12921292#: ../../library/idle.rst:729
12931293msgid ""
1294+ "Sending print output from one process to a text widget in another is slower "
1295+ "than printing to a system terminal in the same process. This has the most "
1296+ "effect when printing multiple arguments, as the string for each argument, "
1297+ "each separator, the newline are sent separately. For development, this is "
1298+ "usually not a problem, but if one wants to print faster in IDLE, format and "
1299+ "join together everything one wants displayed together and then print a "
1300+ "single string. Both format strings and :meth:`str.join` can help combine "
1301+ "fields and lines."
1302+ msgstr ""
1303+
1304+ #: ../../library/idle.rst:738
1305+ msgid ""
12941306"IDLE's standard stream replacements are not inherited by subprocesses "
12951307"created in the execution process, whether directly by user code or by "
12961308"modules such as multiprocessing. If such subprocess use ``input`` from "
@@ -1299,40 +1311,40 @@ msgid ""
12991311" attached to that window for input and output."
13001312msgstr ""
13011313
1302- #: ../../library/idle.rst:736
1314+ #: ../../library/idle.rst:745
13031315msgid ""
13041316"If ``sys`` is reset by user code, such as with ``importlib.reload(sys)``, "
13051317"IDLE's changes are lost and input from the keyboard and output to the screen"
13061318" will not work correctly."
13071319msgstr ""
13081320
1309- #: ../../library/idle.rst:740
1321+ #: ../../library/idle.rst:749
13101322msgid ""
13111323"When Shell has the focus, it controls the keyboard and screen. This is "
13121324"normally transparent, but functions that directly access the keyboard and "
13131325"screen will not work. These include system-specific functions that "
13141326"determine whether a key has been pressed and if so, which."
13151327msgstr ""
13161328
1317- #: ../../library/idle.rst:745
1329+ #: ../../library/idle.rst:754
13181330msgid ""
13191331"The IDLE code running in the execution process adds frames to the call stack"
13201332" that would not be there otherwise. IDLE wraps ``sys.getrecursionlimit`` "
13211333"and ``sys.setrecursionlimit`` to reduce the effect of the additional stack "
13221334"frames."
13231335msgstr ""
13241336
1325- #: ../../library/idle.rst:750
1337+ #: ../../library/idle.rst:759
13261338msgid ""
13271339"When user code raises SystemExit either directly or by calling sys.exit, "
13281340"IDLE returns to a Shell prompt instead of exiting."
13291341msgstr ""
13301342
1331- #: ../../library/idle.rst:754
1343+ #: ../../library/idle.rst:763
13321344msgid "User output in Shell"
13331345msgstr "Shell中的用户输出"
13341346
1335- #: ../../library/idle.rst:756
1347+ #: ../../library/idle.rst:765
13361348msgid ""
13371349"When a program outputs text, the result is determined by the corresponding "
13381350"output device. When IDLE executes user code, ``sys.stdout`` and "
@@ -1342,7 +1354,7 @@ msgid ""
13421354"rather than production runs."
13431355msgstr ""
13441356
1345- #: ../../library/idle.rst:763
1357+ #: ../../library/idle.rst:772
13461358msgid ""
13471359"For instance, Shell never throws away output. A program that sends "
13481360"unlimited output to Shell will eventually fill memory, resulting in a memory"
@@ -1351,7 +1363,7 @@ msgid ""
13511363"lines, with 300 the default."
13521364msgstr ""
13531365
1354- #: ../../library/idle.rst:769
1366+ #: ../../library/idle.rst:778
13551367msgid ""
13561368"A Tk Text widget, and hence IDLE's Shell, displays characters (codepoints) "
13571369"in the BMP (Basic Multilingual Plane) subset of Unicode. Which characters "
@@ -1365,7 +1377,7 @@ msgid ""
13651377"spacing behavior.) ::"
13661378msgstr ""
13671379
1368- #: ../../library/idle.rst:787
1380+ #: ../../library/idle.rst:796
13691381msgid ""
13701382"The ``repr`` function is used for interactive echo of expression values. It"
13711383" returns an altered version of the input string in which control codes, some"
@@ -1374,13 +1386,13 @@ msgid ""
13741386" regardless of how they are displayed."
13751387msgstr ""
13761388
1377- #: ../../library/idle.rst:793
1389+ #: ../../library/idle.rst:802
13781390msgid ""
13791391"Normal and error output are generally kept separate (on separate lines) from"
13801392" code input and each other. They each get different highlight colors."
13811393msgstr ""
13821394
1383- #: ../../library/idle.rst:796
1395+ #: ../../library/idle.rst:805
13841396msgid ""
13851397"For SyntaxError tracebacks, the normal '^' marking where the error was "
13861398"detected is replaced by coloring the text with an error highlight. When code"
@@ -1389,7 +1401,7 @@ msgid ""
13891401"opened if necessary."
13901402msgstr ""
13911403
1392- #: ../../library/idle.rst:802
1404+ #: ../../library/idle.rst:811
13931405msgid ""
13941406"Shell has a special facility for squeezing output lines down to a 'Squeezed "
13951407"text' label. This is done automatically for output over N lines (N = 50 by "
@@ -1399,18 +1411,18 @@ msgid ""
13991411"scrolling."
14001412msgstr ""
14011413
1402- #: ../../library/idle.rst:810
1414+ #: ../../library/idle.rst:819
14031415msgid ""
14041416"Squeezed output is expanded in place by double-clicking the label. It can "
14051417"also be sent to the clipboard or a separate view window by right-clicking "
14061418"the label."
14071419msgstr ""
14081420
1409- #: ../../library/idle.rst:815
1421+ #: ../../library/idle.rst:824
14101422msgid "Developing tkinter applications"
14111423msgstr "开发 tkinter 应用程序"
14121424
1413- #: ../../library/idle.rst:817
1425+ #: ../../library/idle.rst:826
14141426msgid ""
14151427"IDLE is intentionally different from standard Python in order to facilitate "
14161428"development of tkinter programs. Enter ``import tkinter as tk; root = "
@@ -1422,7 +1434,7 @@ msgid ""
14221434" visibly changes in standard Python until one enters ``root.update()``."
14231435msgstr ""
14241436
1425- #: ../../library/idle.rst:826
1437+ #: ../../library/idle.rst:835
14261438msgid ""
14271439"Most tkinter programs run ``root.mainloop()``, which usually does not return"
14281440" until the tk app is destroyed. If the program is run with ``python -i`` or"
@@ -1431,27 +1443,27 @@ msgid ""
14311443"with."
14321444msgstr ""
14331445
1434- #: ../../library/idle.rst:832
1446+ #: ../../library/idle.rst:841
14351447msgid ""
14361448"When running a tkinter program from an IDLE editor, one can comment out the "
14371449"mainloop call. One then gets a shell prompt immediately and can interact "
14381450"with the live application. One just has to remember to re-enable the "
14391451"mainloop call when running in standard Python."
14401452msgstr ""
14411453
1442- #: ../../library/idle.rst:838
1454+ #: ../../library/idle.rst:847
14431455msgid "Running without a subprocess"
14441456msgstr "在没有子进程的情况下运行"
14451457
1446- #: ../../library/idle.rst:840
1458+ #: ../../library/idle.rst:849
14471459msgid ""
14481460"By default, IDLE executes user code in a separate subprocess via a socket, "
14491461"which uses the internal loopback interface. This connection is not "
14501462"externally visible and no data is sent to or received from the Internet. If "
14511463"firewall software complains anyway, you can ignore it."
14521464msgstr ""
14531465
1454- #: ../../library/idle.rst:845
1466+ #: ../../library/idle.rst:854
14551467msgid ""
14561468"If the attempt to make the socket connection fails, Idle will notify you. "
14571469"Such failures are sometimes transient, but if persistent, the problem may be"
@@ -1460,7 +1472,7 @@ msgid ""
14601472" command line switch."
14611473msgstr ""
14621474
1463- #: ../../library/idle.rst:851
1475+ #: ../../library/idle.rst:860
14641476msgid ""
14651477"If IDLE is started with the -n command line switch it will run in a single "
14661478"process and will not create the subprocess which runs the RPC Python "
@@ -1474,15 +1486,15 @@ msgid ""
14741486"at all possible."
14751487msgstr ""
14761488
1477- #: ../../library/idle.rst:866
1489+ #: ../../library/idle.rst:875
14781490msgid "Help and preferences"
14791491msgstr "帮助和偏好"
14801492
1481- #: ../../library/idle.rst:871
1493+ #: ../../library/idle.rst:880
14821494msgid "Help sources"
14831495msgstr "帮助源"
14841496
1485- #: ../../library/idle.rst:873
1497+ #: ../../library/idle.rst:882
14861498msgid ""
14871499"Help menu entry \" IDLE Help\" displays a formatted html version of the IDLE "
14881500"chapter of the Library Reference. The result, in a read-only tkinter text "
@@ -1492,7 +1504,7 @@ msgid ""
14921504"the opened box."
14931505msgstr ""
14941506
1495- #: ../../library/idle.rst:881
1507+ #: ../../library/idle.rst:890
14961508msgid ""
14971509"Help menu entry \" Python Docs\" opens the extensive sources of help, "
14981510"including tutorials, available at ``docs.python.org/x.y``, where 'x.y' is "
@@ -1501,17 +1513,17 @@ msgid ""
15011513"instead."
15021514msgstr ""
15031515
1504- #: ../../library/idle.rst:887
1516+ #: ../../library/idle.rst:896
15051517msgid ""
15061518"Selected URLs can be added or removed from the help menu at any time using "
15071519"the General tab of the Configure IDLE dialog."
15081520msgstr ""
15091521
1510- #: ../../library/idle.rst:893
1522+ #: ../../library/idle.rst:902
15111523msgid "Setting preferences"
15121524msgstr "首选项设置"
15131525
1514- #: ../../library/idle.rst:895
1526+ #: ../../library/idle.rst:904
15151527msgid ""
15161528"The font preferences, highlighting, keys, and general preferences can be "
15171529"changed via Configure IDLE on the Option menu. Non-default user settings are"
@@ -1520,7 +1532,7 @@ msgid ""
15201532" or more of the files in ``.idlerc``."
15211533msgstr ""
15221534
1523- #: ../../library/idle.rst:901
1535+ #: ../../library/idle.rst:910
15241536msgid ""
15251537"On the Font tab, see the text sample for the effect of font face and size on"
15261538" multiple characters in multiple languages. Edit the sample to add other "
@@ -1529,30 +1541,30 @@ msgid ""
15291541"the top of the sample and try changing first size and then font."
15301542msgstr ""
15311543
1532- #: ../../library/idle.rst:908
1544+ #: ../../library/idle.rst:917
15331545msgid ""
15341546"On the Highlights and Keys tab, select a built-in or custom color theme and "
15351547"key set. To use a newer built-in color theme or key set with older IDLEs, "
15361548"save it as a new custom theme or key set and it well be accessible to older "
15371549"IDLEs."
15381550msgstr ""
15391551
1540- #: ../../library/idle.rst:914
1552+ #: ../../library/idle.rst:923
15411553msgid "IDLE on macOS"
15421554msgstr "macOS 上的IDLE "
15431555
1544- #: ../../library/idle.rst:916
1556+ #: ../../library/idle.rst:925
15451557msgid ""
15461558"Under System Preferences: Dock, one can set \" Prefer tabs when opening "
15471559"documents\" to \" Always\" . This setting is not compatible with the "
15481560"tk/tkinter GUI framework used by IDLE, and it breaks a few IDLE features."
15491561msgstr ""
15501562
1551- #: ../../library/idle.rst:921
1563+ #: ../../library/idle.rst:930
15521564msgid "Extensions"
15531565msgstr "扩展"
15541566
1555- #: ../../library/idle.rst:923
1567+ #: ../../library/idle.rst:932
15561568msgid ""
15571569"IDLE contains an extension facility. Preferences for extensions can be "
15581570"changed with the Extensions tab of the preferences dialog. See the beginning"
0 commit comments