IDLE — Python 3.10.6 documentation
文章推薦指數: 80 %
IDLE has two main window types, the Shell window and the Editor window. It is possible to have multiple editor windows simultaneously. On Windows and Linux, ...
Navigation
index
modules|
next|
previous|
Python»
3.10.6Documentation»
ThePythonStandardLibrary»
GraphicalUserInterfaceswithTk»
IDLE
|
IDLE¶
Sourcecode:Lib/idlelib/
IDLEisPython’sIntegratedDevelopmentandLearningEnvironment.
IDLEhasthefollowingfeatures:
codedin100%purePython,usingthetkinterGUItoolkit
cross-platform:worksmostlythesameonWindows,Unix,andmacOS
Pythonshellwindow(interactiveinterpreter)withcolorizing
ofcodeinput,output,anderrormessages
multi-windowtexteditorwithmultipleundo,Pythoncolorizing,
smartindent,calltips,autocompletion,andotherfeatures
searchwithinanywindow,replacewithineditorwindows,andsearch
throughmultiplefiles(grep)
debuggerwithpersistentbreakpoints,stepping,andviewing
ofglobalandlocalnamespaces
configuration,browsers,andotherdialogs
Menus¶
IDLEhastwomainwindowtypes,theShellwindowandtheEditorwindow.Itis
possibletohavemultipleeditorwindowssimultaneously.OnWindowsand
Linux,eachhasitsowntopmenu.Eachmenudocumentedbelowindicates
whichwindowtypeitisassociatedwith.
Outputwindows,suchasusedforEdit=>FindinFiles,areasubtypeofeditor
window.Theycurrentlyhavethesametopmenubutadifferent
defaulttitleandcontextmenu.
OnmacOS,thereisoneapplicationmenu.Itdynamicallychangesaccording
tothewindowcurrentlyselected.IthasanIDLEmenu,andsomeentries
describedbelowaremovedaroundtoconformtoAppleguidelines.
Filemenu(ShellandEditor)¶
NewFileCreateanewfileeditingwindow.
Open…OpenanexistingfilewithanOpendialog.
OpenModule…Openanexistingmodule(searchessys.path).
RecentFilesOpenalistofrecentfiles.Clickonetoopenit.
ModuleBrowserShowfunctions,classes,andmethodsinthecurrentEditorfileina
treestructure.Intheshell,openamodulefirst.
PathBrowserShowsys.pathdirectories,modules,functions,classesandmethodsina
treestructure.
SaveSavethecurrentwindowtotheassociatedfile,ifthereisone.Windows
thathavebeenchangedsincebeingopenedorlastsavedhavea*before
andafterthewindowtitle.Ifthereisnoassociatedfile,
doSaveAsinstead.
SaveAs…SavethecurrentwindowwithaSaveAsdialog.Thefilesavedbecomesthe
newassociatedfileforthewindow.(Ifyourfilenamagerissettohide
extensions,thecurrentextensionwillbeomittedinthefilenamebox.
Ifthenewfilenamehasno‘.’,‘.py’and‘.txt’willbeaddedforPython
andtextfiles,exceptthatonmacOSAqua,’.py’isaddedforallfiles.)
SaveCopyAs…Savethecurrentwindowtodifferentfilewithoutchangingtheassociated
file.(SeeSaveAsnoteaboveaboutfilenameextensions.)
PrintWindowPrintthecurrentwindowtothedefaultprinter.
CloseWindowClosethecurrentwindow(ifanunsavededitor,asktosave;ifanunsaved
Shell,asktoquitexecution).Callingexit()orclose()intheShell
windowalsoclosesShell.Ifthisistheonlywindow,alsoexitIDLE.
ExitIDLECloseallwindowsandquitIDLE(asktosaveunsavededitwindows).
Editmenu(ShellandEditor)¶
UndoUndothelastchangetothecurrentwindow.Amaximumof1000changesmay
beundone.
RedoRedothelastundonechangetothecurrentwindow.
SelectAllSelecttheentirecontentsofthecurrentwindow.
CutCopyselectionintothesystem-wideclipboard;thendeletetheselection.
CopyCopyselectionintothesystem-wideclipboard.
PasteInsertcontentsofthesystem-wideclipboardintothecurrentwindow.
Theclipboardfunctionsarealsoavailableincontextmenus.
Find…Openasearchdialogwithmanyoptions
FindAgainRepeatthelastsearch,ifthereisone.
FindSelectionSearchforthecurrentlyselectedstring,ifthereisone.
FindinFiles…Openafilesearchdialog.Putresultsinanewoutputwindow.
Replace…Openasearch-and-replacedialog.
GotoLineMovethecursortothebeginningofthelinerequestedandmakethat
linevisible.Arequestpasttheendofthefilegoestotheend.
Clearanyselectionandupdatethelineandcolumnstatus.
ShowCompletionsOpenascrollablelistallowingselectionofexistingnames.See
CompletionsintheEditingandnavigationsectionbelow.
ExpandWordExpandaprefixyouhavetypedtomatchafullwordinthesamewindow;
repeattogetadifferentexpansion.
ShowCallTipAfteranunclosedparenthesisforafunction,openasmallwindowwith
functionparameterhints.SeeCalltipsinthe
Editingandnavigationsectionbelow.
ShowSurroundingParensHighlightthesurroundingparenthesis.
Formatmenu(Editorwindowonly)¶
FormatParagraphReformatthecurrentblank-line-delimitedparagraphincommentblockor
multilinestringorselectedlineinastring.Alllinesinthe
paragraphwillbeformattedtolessthanNcolumns,whereNdefaultsto72.
IndentRegionShiftselectedlinesrightbytheindentwidth(default4spaces).
DedentRegionShiftselectedlinesleftbytheindentwidth(default4spaces).
CommentOutRegionInsert##infrontofselectedlines.
UncommentRegionRemoveleading#or##fromselectedlines.
TabifyRegionTurnleadingstretchesofspacesintotabs.(Note:Werecommendusing
4spaceblockstoindentPythoncode.)
UntabifyRegionTurnalltabsintothecorrectnumberofspaces.
ToggleTabsOpenadialogtoswitchbetweenindentingwithspacesandtabs.
NewIndentWidthOpenadialogtochangeindentwidth.TheaccepteddefaultbythePython
communityis4spaces.
StripTrailingChitespaceRemovetrailingspaceandotherwhitespacecharactersafterthelast
non-whitespacecharacterofalinebyapplyingstr.rstriptoeachline,
includinglineswithinmultilinestrings.ExceptforShellwindows,
removeextranewlinesattheendofthefile.
Runmenu(Editorwindowonly)¶
RunModuleDoCheckModule.Ifnoerror,restarttheshelltocleanthe
environment,thenexecutethemodule.OutputisdisplayedintheShell
window.Notethatoutputrequiresuseofprintorwrite.
Whenexecutioniscomplete,theShellretainsfocusanddisplaysaprompt.
Atthispoint,onemayinteractivelyexploretheresultofexecution.
Thisissimilartoexecutingafilewithpython-ifileatacommand
line.
Run…CustomizedSameasRunModule,butrunthemodulewithcustomized
settings.CommandLineArgumentsextendsys.argvasifpassed
onacommandline.ThemodulecanberunintheShellwithoutrestarting.
CheckModuleCheckthesyntaxofthemodulecurrentlyopenintheEditorwindow.Ifthe
modulehasnotbeensavedIDLEwilleitherprompttheusertosaveor
autosave,asselectedintheGeneraltaboftheIdleSettingsdialog.If
thereisasyntaxerror,theapproximatelocationisindicatedinthe
Editorwindow.
PythonShellOpenorwakeupthePythonShellwindow.
Shellmenu(Shellwindowonly)¶
ViewLastRestartScrolltheshellwindowtothelastShellrestart.
RestartShellRestarttheshelltocleantheenvironmentandresetdisplayandexceptionhandling.
PreviousHistoryCyclethroughearliercommandsinhistorywhichmatchthecurrententry.
NextHistoryCyclethroughlatercommandsinhistorywhichmatchthecurrententry.
InterruptExecutionStoparunningprogram.
Debugmenu(Shellwindowonly)¶
GotoFile/LineLookonthecurrentline.withthecursor,andthelineaboveforafilename
andlinenumber.Iffound,openthefileifnotalreadyopen,andshowthe
line.Usethistoviewsourcelinesreferencedinanexceptiontraceback
andlinesfoundbyFindinFiles.Alsoavailableinthecontextmenuof
theShellwindowandOutputwindows.
Debugger(toggle)Whenactivated,codeenteredintheShellorrunfromanEditorwillrun
underthedebugger.IntheEditor,breakpointscanbesetwiththecontext
menu.Thisfeatureisstillincompleteandsomewhatexperimental.
StackViewerShowthestacktracebackofthelastexceptioninatreewidget,with
accesstolocalsandglobals.
Auto-openStackViewerToggleautomaticallyopeningthestackvieweronanunhandledexception.
Optionsmenu(ShellandEditor)¶
ConfigureIDLEOpenaconfigurationdialogandchangepreferencesforthefollowing:
fonts,indentation,keybindings,textcolorthemes,startupwindowsand
size,additionalhelpsources,andextensions.OnmacOS,openthe
configurationdialogbyselectingPreferencesintheapplication
menu.Formoredetails,see
SettingpreferencesunderHelpandpreferences.
Mostconfigurationoptionsapplytoallwindowsorallfuturewindows.
Theoptionitemsbelowonlyapplytotheactivewindow.
Show/HideCodeContext(EditorWindowonly)Openapaneatthetopoftheeditwindowwhichshowstheblockcontext
ofthecodewhichhasscrolledabovethetopofthewindow.See
CodeContextintheEditingandNavigationsection
below.
Show/HideLineNumbers(EditorWindowonly)Openacolumntotheleftoftheeditwindowwhichshowsthenumber
ofeachlineoftext.Thedefaultisoff,whichmaybechangedinthe
preferences(seeSettingpreferences).
Zoom/RestoreHeightTogglesthewindowbetweennormalsizeandmaximumheight.Theinitialsize
defaultsto40linesby80charsunlesschangedontheGeneraltabofthe
ConfigureIDLEdialog.Themaximumheightforascreenisdeterminedby
momentarilymaximizingawindowthefirsttimeoneiszoomedonthescreen.
Changingscreensettingsmayinvalidatethesavedheight.Thistogglehas
noeffectwhenawindowismaximized.
Windowmenu(ShellandEditor)¶
Liststhenamesofallopenwindows;selectonetobringittotheforeground
(deiconifyingitifnecessary).
Helpmenu(ShellandEditor)¶
AboutIDLEDisplayversion,copyright,license,credits,andmore.
IDLEHelpDisplaythisIDLEdocument,detailingthemenuoptions,basiceditingand
navigation,andothertips.
PythonDocsAccesslocalPythondocumentation,ifinstalled,orstartawebbrowser
andopendocs.python.orgshowingthelatestPythondocumentation.
TurtleDemoRuntheturtledemomodulewithexamplePythoncodeandturtledrawings.
AdditionalhelpsourcesmaybeaddedherewiththeConfigureIDLEdialogunder
theGeneraltab.SeetheHelpsourcessubsectionbelow
formoreonHelpmenuchoices.
Contextmenus¶
Openacontextmenubyright-clickinginawindow(Control-clickonmacOS).
ContextmenushavethestandardclipboardfunctionsalsoontheEditmenu.
CutCopyselectionintothesystem-wideclipboard;thendeletetheselection.
CopyCopyselectionintothesystem-wideclipboard.
PasteInsertcontentsofthesystem-wideclipboardintothecurrentwindow.
Editorwindowsalsohavebreakpointfunctions.Lineswithabreakpointsetare
speciallymarked.Breakpointsonlyhaveaneffectwhenrunningunderthe
debugger.Breakpointsforafilearesavedintheuser’s.idlerc
directory.
SetBreakpointSetabreakpointonthecurrentline.
ClearBreakpointClearthebreakpointonthatline.
ShellandOutputwindowsalsohavethefollowing.
Gotofile/lineSameasinDebugmenu.
TheShellwindowalsohasanoutputsqueezingfacilityexplainedinthePython
Shellwindowsubsectionbelow.
SqueezeIfthecursorisoveranoutputline,squeezealltheoutputbetween
thecodeaboveandthepromptbelowdowntoa‘Squeezedtext’label.
EditingandNavigation¶
Editorwindows¶
IDLEmayopeneditorwindowswhenitstarts,dependingonsettings
andhowyoustartIDLE.Thereafter,usetheFilemenu.Therecanbeonly
oneopeneditorwindowforagivenfile.
Thetitlebarcontainsthenameofthefile,thefullpath,andtheversion
ofPythonandIDLErunningthewindow.Thestatusbarcontainstheline
number(‘Ln’)andcolumnnumber(‘Col’).Linenumbersstartwith1;
columnnumberswith0.
IDLEassumesthatfileswithaknown.py*extensioncontainPythoncode
andthatotherfilesdonot.RunPythoncodewiththeRunmenu.
Keybindings¶
Inthissection,‘C’referstotheControlkeyonWindowsandUnixand
theCommandkeyonmacOS.
Backspacedeletestotheleft;Deldeletestotheright
C-Backspacedeletewordleft;C-Deldeletewordtotheright
ArrowkeysandPageUp/PageDowntomovearound
C-LeftArrowandC-RightArrowmovesbywords
Home/Endgotobegin/endofline
C-Home/C-Endgotobegin/endoffile
SomeusefulEmacsbindingsareinheritedfromTcl/Tk:
C-abeginningofline
C-eendofline
C-kkillline(butdoesn’tputitinclipboard)
C-lcenterwindowaroundtheinsertionpoint
C-bgobackwardonecharacterwithoutdeleting(usuallyyoucan
alsousethecursorkeyforthis)
C-fgoforwardonecharacterwithoutdeleting(usuallyyoucan
alsousethecursorkeyforthis)
C-pgouponeline(usuallyyoucanalsousethecursorkeyfor
this)
C-ddeletenextcharacter
Standardkeybindings(likeC-ctocopyandC-vtopaste)
maywork.KeybindingsareselectedintheConfigureIDLEdialog.
Automaticindentation¶
Afterablock-openingstatement,thenextlineisindentedby4spaces(inthe
PythonShellwindowbyonetab).Aftercertainkeywords(break,returnetc.)
thenextlineisdedented.Inleadingindentation,Backspacedeletesup
to4spacesiftheyarethere.Tabinsertsspaces(inthePython
Shellwindowonetab),numberdependsonIndentwidth.Currently,tabs
arerestrictedtofourspacesduetoTcl/Tklimitations.
Seealsotheindent/dedentregioncommandsonthe
Formatmenu.
SearchandReplace¶
Anyselectionbecomesasearchtarget.However,onlyselectionswithin
alineworkbecausesearchesareonlyperformedwithinlineswiththe
terminalnewlineremoved.If[x]Regularexpresionischecked,the
targetisinterpretedaccordingtothePythonremodule.
Completions¶
Completionsaresupplied,whenrequestedandavailable,formodule
names,attributesofclassesorfunctions,orfilenames.Eachrequest
methoddisplaysacompletionboxwithexistingnames.(Seetab
completionsbelowforanexception.)Foranybox,changethename
beingcompletedandtheitemhighlightedintheboxby
typinganddeletingcharacters;byhittingUp,Down,
PageUp,PageDown,Home,andEndkeys;
andbyasingleclickwithinthebox.ClosetheboxwithEscape,
Enter,anddoubleTabkeysorclicksoutsidethebox.
Adoubleclickwithintheboxselectsandcloses.
Onewaytoopenaboxistotypeakeycharacterandwaitfora
predefinedinterval.Thisdefaultsto2seconds;customizeit
inthesettingsdialog.(Topreventautopopups,setthedelaytoa
largenumberofmilliseconds,suchas100000000.)Forimportedmodule
namesorclassorfunctionattributes,type‘.’.
Forfilenamesintherootdirectory,typeos.sepor
os.altsepimmediatelyafteranopeningquote.(OnWindows,
onecanspecifyadrivefirst.)Moveintosubdirectoriesbytypinga
directorynameandaseparator.
Insteadofwaiting,orafteraboxisclosed,openacompletionbox
immediatelywithShowCompletionsontheEditmenu.Thedefaulthot
keyisC-space.Ifonetypesaprefixforthedesiredname
beforeopeningthebox,thefirstmatchornearmissismadevisible.
Theresultisthesameasifoneentersaprefix
aftertheboxisdisplayed.ShowCompletionsafteraquotecompletes
filenamesinthecurrentdirectoryinsteadofarootdirectory.
HittingTabafteraprefixusuallyhasthesameeffectasShow
Completions.(Withnoprefix,itindents.)However,ifthereisonly
onematchtotheprefix,thatmatchisimmediatelyaddedtotheeditor
textwithoutopeningabox.
Invoking‘ShowCompletions’,orhittingTabafteraprefix,
outsideofastringandwithoutapreceding‘.’opensaboxwith
keywords,builtinnames,andavailablemodule-levelnames.
Wheneditingcodeinaneditor(asopposetoShell),increasethe
availablemodule-levelnamesbyrunningyourcode
andnotrestartingtheShellthereafter.Thisisespeciallyuseful
afteraddingimportsatthetopofafile.Thisalsoincreases
possibleattributecompletions.
Completionboxesinitiallyexcludenamesbeginningwith‘_’or,for
modules,notincludedin‘__all__’.Thehiddennamescanbeaccessed
bytyping‘_’after‘.’,eitherbeforeoraftertheboxisopened.
Calltips¶
Acalltipisshownautomaticallywhenonetypes(afterthename
ofanaccessiblefunction.Afunctionnameexpressionmayinclude
dotsandsubscripts.Acalltipremainsuntilitisclicked,thecursor
ismovedoutoftheargumentarea,or)istyped.Wheneverthe
cursorisintheargumentpartofadefinition,selectEditand“Show
CallTip”onthemenuorenteritsshortcuttodisplayacalltip.
Thecalltipconsistsofthefunction’ssignatureanddocstringupto
thelatter’sfirstblanklineorthefifthnon-blankline.(Somebuiltin
functionslackanaccessiblesignature.)A‘/’or‘*’inthesignature
indicatesthattheprecedingorfollowingargumentsarepassedby
positionorname(keyword)only.Detailsaresubjecttochange.
InShell,theaccessiblefunctionsdependsonwhatmoduleshavebeen
importedintotheuserprocess,includingthoseimportedbyIdleitself,
andwhichdefinitionshavebeenrun,allsincethelastrestart.
Forexample,restarttheShellandenteritertools.count(.Acalltip
appearsbecauseIdleimportsitertoolsintotheuserprocessforitsown
use.(Thiscouldchange.)Enterturtle.write(andnothingappears.
Idledoesnotitselfimportturtle.Themenuentryandshortcutalsodo
nothing.Enterimportturtle.Thereafter,turtle.write(
willdisplayacalltip.
Inaneditor,importstatementshavenoeffectuntilonerunsthefile.
Onemightwanttorunafileafterwritingimportstatements,after
addingfunctiondefinitions,orafteropeninganexistingfile.
CodeContext¶
WithinaneditorwindowcontainingPythoncode,codecontextcanbetoggled
inordertoshoworhideapaneatthetopofthewindow.Whenshown,this
panefreezestheopeninglinesforblockcode,suchasthosebeginningwith
class,def,orifkeywords,thatwouldhaveotherwisescrolled
outofview.Thesizeofthepanewillbeexpandedandcontractedasneeded
toshowtheallcurrentlevelsofcontext,uptothemaximumnumberof
linesdefinedintheConfigureIDLEdialog(whichdefaultsto15).Ifthere
arenocurrentcontextlinesandthefeatureistoggledon,asingleblank
linewilldisplay.Clickingonalineinthecontextpanewillmovethat
linetothetopoftheeditor.
Thetextandbackgroundcolorsforthecontextpanecanbeconfiguredunder
theHighlightstabintheConfigureIDLEdialog.
Shellwindow¶
InIDLE’sShell,enter,edit,andrecallcompletestatements.(Most
consolesandterminalsonlyworkwithasinglephysicallineatatime).
Submitasingle-linestatementforexecutionbyhittingReturn
withthecursoranywhereontheline.Ifalineisextendedwith
Backslash(\),thecursormustbeonthelastphysicalline.
Submitamulti-linecompoundstatementbyenteringablanklineafter
thestatement.
WhenonepastescodeintoShell,itisnotcompiledandpossiblyexecuted
untilonehitsReturn,asspecifiedabove.
Onemayeditpastedcodefirst.
IfonepastesmorethanonestatementintoShell,theresultwillbea
SyntaxErrorwhenmultiplestatementsarecompiledasiftheywereone.
LinescontainingRESTARTmeanthattheuserexecutionprocesshasbeen
re-started.Thisoccurswhentheuserexecutionprocesshascrashed,
whenonerequestsarestartontheShellmenu,orwhenonerunscode
inaneditorwindow.
Theeditingfeaturesdescribedinprevioussubsectionsworkwhenentering
codeinteractively.IDLE’sShellwindowalsorespondstothefollowingkeys.
C-cinterruptsexecutingcommand
C-dsendsend-of-file;closeswindowiftypedata>>>prompt
Alt-/(Expandword)isalsousefultoreducetyping
Commandhistory
Alt-pretrievespreviouscommandmatchingwhatyouhavetyped.On
macOSuseC-p.
Alt-nretrievesnext.OnmacOSuseC-n.
Returnwhilethecursorisonanypreviouscommand
retrievesthatcommand
Textcolors¶
Idledefaultstoblackonwhitetext,butcolorstextwithspecialmeanings.
Fortheshell,theseareshelloutput,shellerror,useroutput,and
usererror.ForPythoncode,attheshellpromptorinaneditor,theseare
keywords,builtinclassandfunctionnames,namesfollowingclassand
def,strings,andcomments.Foranytextwindow,thesearethecursor(when
present),foundtext(whenpossible),andselectedtext.
IDLEalsohighlightsthesoftkeywordsmatch,
case,and_in
pattern-matchingstatements.However,thishighlightingisnotperfectand
willbeincorrectinsomerarecases,includingsome_-sincase
patterns.
Textcoloringisdoneinthebackground,souncolorizedtextisoccasionally
visible.Tochangethecolorscheme,usetheConfigureIDLEdialog
Highlightingtab.Themarkingofdebuggerbreakpointlinesintheeditorand
textinpopupsanddialogsisnotuser-configurable.
StartupandCodeExecution¶
Uponstartupwiththe-soption,IDLEwillexecutethefilereferencedby
theenvironmentvariablesIDLESTARTUPorPYTHONSTARTUP.
IDLEfirstchecksforIDLESTARTUP;ifIDLESTARTUPispresentthefile
referencedisrun.IfIDLESTARTUPisnotpresent,IDLEchecksfor
PYTHONSTARTUP.Filesreferencedbytheseenvironmentvariablesare
convenientplacestostorefunctionsthatareusedfrequentlyfromtheIDLE
shell,orforexecutingimportstatementstoimportcommonmodules.
Inaddition,Tkalsoloadsastartupfileifitispresent.Notethatthe
Tkfileisloadedunconditionally.Thisadditionalfileis.Idle.pyandis
lookedforintheuser’shomedirectory.Statementsinthisfilewillbe
executedintheTknamespace,sothisfileisnotusefulforimporting
functionstobeusedfromIDLE’sPythonshell.
Commandlineusage¶
idle.py[-ccommand][-d][-e][-h][-i][-rfile][-s][-ttitle][-][arg]...
-ccommandruncommandintheshellwindow
-denabledebuggerandopenshellwindow
-eopeneditorwindow
-hprinthelpmessagewithlegalcombinationsandexit
-iopenshellwindow
-rfilerunfileinshellwindow
-srun$IDLESTARTUPor$PYTHONSTARTUPfirst,inshellwindow
-ttitlesettitleofshellwindow
-runstdininshell(-mustbelastoptionbeforeargs)
Iftherearearguments:
If-,-c,orrisused,allargumentsareplacedin
sys.argv[1:...]andsys.argv[0]issetto'','-c',
or'-r'.Noeditorwindowisopened,evenifthatisthedefault
setintheOptionsdialog.
Otherwise,argumentsarefilesopenedforeditingand
sys.argvreflectstheargumentspassedtoIDLEitself.
Startupfailure¶
IDLEusesasockettocommunicatebetweentheIDLEGUIprocessandtheuser
codeexecutionprocess.AconnectionmustbeestablishedwhenevertheShell
startsorrestarts.(Thelatterisindicatedbyadividerlinethatsays
‘RESTART’).IftheuserprocessfailstoconnecttotheGUIprocess,it
usuallydisplaysaTkerrorboxwitha‘cannotconnect’message
thatdirectstheuserhere.Itthenexits.
OnespecificconnectionfailureonUnixsystemsresultsfrom
misconfiguredmasqueradingrulessomewhereinasystem’snetworksetup.
WhenIDLEisstartedfromaterminal,onewillseeamessagestarting
with**Invalidhost:.
Thevalidvalueis127.0.0.1(idlelib.rpc.LOCALHOST).
Onecandiagnosewithtcpconnect-irv127.0.0.16543inone
terminalwindowandtcplisten
延伸文章資訊
- 1Python IDLE簡介– 飆機器人_科技教育第一品牌
不同於常見的IDE(Integrated Development Environment,整合開發環境),Python使用的是IDLE(Integrated Development and Le...
- 2IDLE - 维基百科,自由的百科全书
IDLE可以指:. IDLE (Python),Python集成开发环境。 (G)I-DLE,韩国Cube娱乐旗下的五人女子音乐组合。 这是一个消歧义页,羅列了有相同或相近的标题,但內容不同的 ...
- 3在App Store 上的「Idle'」
閱讀評論、比較客戶評分、查看截圖,並進一步瞭解「Idle'」。下載「Idle'」並在iPhone、iPad 和iPod touch 上盡享豐富功能。
- 4idle - Yahoo奇摩字典搜尋結果
idle · adj. 不工作的;閒置的;空閒的;懶惰的;無所事事的 · vi. 無所事事;閒混;閒逛;(機器)空轉 · vt. 虛度(光陰)[(+away)];使空閒;使空轉 ...
- 5在App Store 上的「Idle Apocalypse」 - Apple
閱讀評論、比較客戶評分、查看截圖,並進一步瞭解「Idle Apocalypse」。下載「Idle Apocalypse」並在iPhone、iPad 和iPod touch 上盡享豐富功能。