Python編輯器英文菜單的中文翻譯及解釋


Python編輯器,在Help菜單里找到了“IDLE Help”(如圖1所示),是Python的IDLE和Shell中的菜單說明

 

 

 

 

圖1 IDLE Help

一、文件(File)菜單

主要是在Python里編程過程中對於文件的新建、打開、保存等操作。

File menu (Shell and Editor) 文件菜單(Shell和編輯器)

New File 新建文件

Create a new file editing window  創建一個新的文件編輯窗口。

Open..打開…

Open an existing file with an Open dialog  使用“打開"對話框打開現有文件。

Recent Files  最近的文件

Open a list of recent files. Click one to open it  打開最近使用的文件列表。單擊一個打開它。

Open Module 打開模塊.

Open an existing module (searches sys path)  打開現有模塊(搜索sys.path)。

Class Browser 類瀏覽器

Show functions, classes, and methods in the current Editor file in a tree structure. Inthe shell, open a module first

以樹狀結構顯示當前編輯器文件中的函數、類和方法。在shel中,首先打開一個模塊。

Path Browser  路徑瀏覽器

Show sys.path directories,modules,functions, classes and methods in a treestructure   在樹結構中顯示sys.path目錄、模塊、函數、類和方法。

Save  保存

Save the current window to the associated file, if there is one. Windows that have

been changed since being opened or last saved have a * before and after the windowtitle If there is no associated file,do Save As instead

將當前窗口保存到關聯的文件(如果有)。自打開或上次保存后已更改的窗口在窗口標題前后都有一個*號。如果沒有關聯的文件,請改為另存為。

Save As  另存為

Save the current window with a Save As dialog The file saved becomes the newassociated file for the window.

用另存為對話框保存當前窗口。保存的文件將成為窗口的新關聯文件。

Save Copy As..將副本另存為…

Save the current window to different file without changing the associated file  將當前窗口保存到其他文件,而不更改關聯的文件。

Print Window  打印窗口

Print the current window to the default printer 將當前窗口打印到默認打印機。

Close  關閉

Close the current window (ask to save if unsaved)  關閉當前窗口(如果未保存則要求保存)。

Exit  退出

Close all windows and quit lDLE (ask to save unsaved windows)  關閉所有窗口並退出空閑狀態(要求保存未保存的窗口)。

 

 

 

圖2 File菜單

二、編輯(Edit)菜單

主要是編程過程中對代碼的編輯操作,包括:撤消、重做、剪切、粘貼、復制、查找、替換等功能

Edit menu (Shell and Editor)    編輯菜單(She和編輯器)

Undo  撤消

Undo the last change to the current window A maxlmum of 1000 changes may beundone

撤消對當前窗口的最后更改。最多可以撤消1000個更改。

Redo   重做

Redo the last undone change to the current window  重做對當前窗口的上次撤消更改。

Cut  切割

Copy selection into the system-wide clipboard,then delete the selection  將所選內容復制到系統范圍的剪貼板中;然后刪除所選內容。

Copy  復制

Copy selection into the system-wide clipboard  將所選內容復制到系統范圍的剪貼板中。

Paste  粘貼

Insert contents of the system-wide clipboard into the current window   將系統范圍剪貼板的內容插入當前窗口。

The clipboard functions are also available in context menus   剪貼板功能也可以在上下文菜單中使用。

Select Al   全選

Select the entire contents of the current window  選擇當前窗口的全部內容。

Find...  查找…

Open a search dialog with many options  打開包含許多選項的搜索對話框

Find Again   再找一次

Repeat the last search, if there is one   如果有,重復上一次搜索。

Find Selection   查找選定內容

Search for the currently selected string,if there is one  搜索當前選定的字符串(如果有)。

Find in Files  在文件中查找…

Open a file search dialog.Put results ina new output window  打開文件搜索對話框。將結果放入新的輸出窗口。

Replace  替換…

Open a search-and-replace dialog  打開“搜索和替換"對話框。

Go to Line   轉到行

Move cursor to the line number requested and make that line visible  將光標移到請求的行號並使該行可見,

Show Completions   顯示完成

Open a scrollable list allowing selection of keywords and attributes.See Completionsin the Editing and navigation section below,

打開一個可滾動列表,允許選擇關鍵字和屬性。請參閱下面編輯和導航部分中的完成部分。

Expand Word  展開字

Expand a prefix you have typed to match a full word in the same window, repeat to geta dillerent expansion

展開已鍵入的前綴以匹配同一窗口中的完整單詞;重復可獲得不同的展開方式。

Show call tip   顯示呼叫提示

After an unclosed parenthesis for a function,opena small window with function.parameter hints.See Caliltips in the Editing and navigation section below

在函數的未閉合圓括號之后,打開一個帶有函數參數提示的小窗口。請參見下面編輯和導航部分中的調用提示。

Show surrounding parens    顯示周圍的parens

Highlight the surrounding parenthesis     突出顯示周圍的括號。

圖3 Edit菜單

三、格式(Format)菜單

主要是對代碼進行格式化操作,包括:縮進、注釋、段落格式等功能。

 

Format menu (Editor window only)   格式菜單(僅限編輯器窗口)

lndent Region   縮進區域

Shift selected lines right by the indent width(default 4 spaces)    按縮進寬度右移選定行(默認為4個空格)。

Dedent Region   Dedent  地區

Shift selected lines left by the indent width (defauft 4 spaces)    按縮進寬度向左移動選定行(默認為4個空格))。

Comment Out Region    注釋區域

lnsert # in front of selected lines   在選定行前面插入。

Uncomment Region    非注釋區域

Remove leading # or#ll from selected lines    從選定行中刪除前導或。

Tabify Region  禁忌區

Turn leading stretches of spaces into tabs.(Note: We recommend using 4 spaceblocks to indent Python code.)

將空格的前導部分變成制表符。(注意:我們建議使用4個空格塊來縮進Python代碼。)

Untabify Region    未分裂地區

Tun all tabs into the correct number of spaces   將所有制表符轉換為正確的空格數。

Toggle Tabs   切換選項卡

Open a dialog to switch between indenting with spaces and tabs    打開一個對話框,在縮進空格和制表符之間切換。

New indent Width   新縮進寬度

Open a dialog to change indent width. The accepted default by the Python communityis 4 spaces

打開對話框以更改縮進寬度。Python社區接受的默認值是4個空格。

Format Paragraph    設置段落格式

Reformat the current blank-line-delimited paragraph in comment block or multilinestring or selected line in a string. All lines in the paragraph will be formatted to lessthan N columns, where N defaults to 72.

重新格式化注釋塊或多行字符串或字符串中選定行中當前以空行分隔的段落。段落中的所有行的格式都將小於N列,其中N默認為72列。

Strip trailing whitespace    冊除尾隨空白

Remove trailing space and other whitespace characters after the last non-whitespace(character of a line by applying str.rstrip to each line,including lines within multiline  strings. Except for Shell windows, remove extra newlines at the end of the file.

通過對每一行(包括多行字符串中的行)應用str.rstrip,刪除行的最后一個非空白字符之后的尾隨空格和其他空白字符。除了Shell窗口之外,請刪除文件末尾的額外換行符。

 

圖4 Format菜單

四、運行(Run)菜單

主要是代碼編寫好之后,調試、運行操作。

 

Run menu (Editor window only)    運行菜單(僅限編輯器窗口)

Run Module     運行模塊

Do Check Module. If no error, restart the shell to clean the environment, then executethe module: Output is displayed in the Shell window. Note that output requires use ofprint or write When execution is complete,the Shell retains focus and displays aprompt.At this point one may interactively explore the resultt of execution This issimilar to executing a file with python -i file at a command line.

檢查模塊。如果沒有錯誤,請重新啟動shell以清理環境,然后執行模塊。輸出將顯示在Shell窗口中。請注意,輸出需要使用打印或寫入。執行完成后,Shell將保留焦點並顯示提示。此時,可以交互地探索執行的結果。這類似於在命令行使用python-i文件執行文件。

Run... Customized    運行  自定義

Same as Run Module, but run the module with customized settings. Command LineArguments extend sys.argv as if passed on a command line. The module can be runin the Shell without restarting

與運行模塊相同,但使用自定義設置運行模塊。命令行參數擴展sys. argv,就像在命令行上傳遞一樣。模塊可以在Shell中運行,而無需重新啟動。

Check Module   檢查模塊

Check the syntax of the module currently open in the Editor window.If the module hasnot been saved IDLE will either prompt the user to save or autosave,as selected inthe General tab of the ldle Settings dialog,If there is a syntax error, the approximatelocation is indicated in the Editor window

檢查編輯器窗口中當前打開的模塊的語法。如果模塊尚未保存,則將提示用戶保存或自動保存,如在“空閑設置"對話框的“常規"選項卡中所選。如果存在語法錯誤,則在編輯器窗口中指示近似位置。

Python Shell    蟒蛇殼

Open or wake up the Python Shell window   打開或喚醒Python Shell窗口。

圖5 Run菜單

五、Shell菜單

注意這個菜單只有在Shell當中有,IDLE中是沒有的。

 

Shell menu (Shell window only)    Shell菜單(僅限Shell窗口)

View Last Restart    查看上次重新啟動

Scroll the shell window to the last Shell restart.將shell   窗口滾動到最后一次shell重新啟動。

Restart Shell    重新啟動Shell

Restart the shell to clean the environment    重新啟動shell以清理環境。

Previous History    以前的歷史

Cycle through earlier commands in history which match the current entry    循環瀏覽歷史記錄中與當前條目匹配的早期命令。

Next History    下一個歷史

Cycle through later commands in history which match the current entry  循環查看歷史記錄中與當前條目匹配的后續命令。

lnterrupt Execution    中斷執行

Stop a running program   停止正在運行的程序。

圖6 Shell菜單

 

 

六、調試(Debug)菜單

這個菜單也只存在於Shell當中,IDLE中是沒有的。

 

Debug menu(Shell window only)   調試菜單(僅限Shell窗口)

Go to File/Line   轉到文件/行

Look on the current line:with the cursor,and the line above for a filename and linenumber. If found,open the file if not already open, and show the line. Use this to viewsource lines referenced in an exception traceback and lines found by Find in Files.Also available in the context menu of the Shell window and Output windows.

看看當前行。使用光標,並在上面的行中輸入文件名和行號。如果找到,打開文件(如果尚未打開),並顯示行。使用此選項可以查看異常回溯中引用的源行和文件中查找找到的行。也可以在Shell窗口和輸出窗口的上下文菜單中使用。

Debugger (toggle)    調試器(切換)

When activated, code entered in the Shell or run from an Editor will run under thedebugger. In the Editor, breakpoints can be set with the context menu. This feature isstill incomplete and somewhat experimental.

激活后,在Shell中輸入或從編輯器運行的代碼將在調試器下運行。在編輯器中,可以使用上下文菜單設置斷點。這個功能仍然不完整,有些實驗性。

Stack Viewer   堆棧查看器

Show the stack traceback of the last exception in a tree widget, with access to localsand globals.

顯示樹小部件中最后一個異常的堆棧回溯,可以訪問局部變量和全局變量。

Auto-open Stack Viewer     自動打開堆棧查看器

Toggle automatically opening the stack viewer on an unhandled exception   切換在未處理的異常上自動打開堆棧查看器。

圖7 Debug菜單

七、選項(Option)菜單

這個在IDLE和Shell當中都有,主要是配置兩個窗口的字體、顯示、行號等功能,特別是行號,這個在其他代碼編輯器是常見的,Python默認是沒有顯示行號的,如果要顯示必須在“Show Line Numbers”打開,注意這個功能只存在於IDLE中。

 

Options menu (Shell and Editor)    選項菜單(Shell和編輯器)

Configure IDLE    配置空閑

Open a configuration dialog and change preferences for the following: fonts,indentation,keybindings, text color themes, startup windows and size, additional helpsources,and extensions. On macoS,open the configuration dialog by selectingPreferences in the application menu For more details,see Setting preferences underHelp and preferences

打開配置對話框並更改下列項的首選項:字體、縮進、鍵綁定、文本顏色主題、啟動窗口和大小、其他幫助源和擴展名。在macOS上,通過選擇應用程序菜單中的首選項打開配置對話框。有關詳細信息,請參見“幫助和首選項"下的“設置首選項”。

Most configuration options apply to all windows or all future windows.The option itemsbelow only apply to the active window

大多數配置選項適用於所有窗口或所有未來窗口。下面的選項僅適用於活動窗口。

Show/Hide Code Context (Editor Window only)      顯示/隱藏代碼上下文(僅限編輯器窗口)

Open a pane at the top of the edit window which shows the block context of the codewhich has scrolled above the top of the window. See Code Context in the Editing andNavigation section below

打開編輯窗口頂部的一個窗格,該窗格顯示在窗口頂部滾動的代碼塊上下文。請參見下面編輯和導航部分中的代碼上下文。

ShowHide Line Numbers (Editor Window only)    顯示/隱藏行號(僅限編輯器窗口)

Open a column to the left of the edit window which shows the number of each line oftext The default is off,which may be changed in the preferences(see Settingpreferences)       

打開編輯窗口左側的列,其中顯示每行文本的編號。默認值為“關”,可在首選項中更改(請參見設置首選項)。

Zoom/Restore Height     縮放/還原高度

Toggles the window between normal size and maximum height The initial size defaults to 40 lines by 80 chars unless changed on the General tab of the ConfigureIDLE dialog.The maximum height for a screen is determined by momentarily maximizing a window the first time one is zoomed on the screen Changing screensettings may invalidate the saved height This toggle has no effect when a window ismaximized

在正常大小和最大高度之間切換窗口。除非在“"配置空閑"對話框的“常規"選項卡上更改,否則初始大小默認為40行80個字符。屏幕的最大高度由第一次在屏幕上縮放時瞬間最大化窗口來確定。更改屏幕設置可能會使保存的高度無效。當窗口最大化時,此切換無效。

圖8 Option菜單

八、窗口(Window)菜單

這里顯示的是你打開的所有程序,可以在不同程序之間進行切換。

 

 

Window menu(Shell and Editor)     窗口菜單(Shell和編輯器)

Lists the names of all open windows; select one to bring it to the foreground(deiconifying it if necessary)

列出所有打開窗口的名稱;選擇一個窗口將其置於前台(必要時將其取消圓錐化)

圖9 Window菜單

九、幫助(Help)菜單

這里面的內容太重要了,但是一般會被使用者忽略。幾乎所有的Python問題你都可以在里面找到答案,只是可惜沒有中文版,但是借助各類翻譯軟件也可以翻譯出一個八九不離十,強烈推薦大家平常多去翻 翻,你會發現可以挖出很多寶藏。我這篇文章的內容就來自於這個菜單里的“IDLE Help”。這里面還有一個好玩的菜單,那就是“Turtle Demo”,這里面有很多利用Python畫圖的程序示例,非常強大哦。

 

Help menu(Shell and Editor)    幫助菜單(Shell和編輯器)

About IDLE   關於空閑

Display version, copyright, license, credits, and more    顯示版本、版權、許可證、信用證等。

IDLE Help    空閑幫助

Display this IDLE document,detailing the menu options,basic editing and navigation,and other tips

顯示此空閑文檔,詳細說明菜單選項、基本編輯和導航以及其他提示。

Python Docs     Python文檔

Access local Python documentation, if installed,or start a web browser and opendocs.python.org showing the latest Python documentation

訪問本地Python文檔(如果已安裝),或啟動web瀏覽器並打開docs.Python.org以顯示最新的Python文檔。

Turtle Demo    海龜演示

Run the turtledemo module with example Python code and turtle drawings    使用示例Python代碼和turtle圖形運行turtledemo模塊。

Additional help sources may be added here with the Configure IDLE dialog under theGeneral tab. See the Help sources subsection below for more on Help menu choices

其他幫助源可以通過“常規"選項卡下的“配置空閑“對話框添加到此處。有關“幫助"菜單選項的詳細信息,請參見下面的“幫助源”小節。

 

 

圖10 Help菜單

十、右鍵(Context)菜單

在編輯器中按右鍵看到的功能菜單,除了常見的復制、剪切、粘貼,還有其他調試的功能,請你慢慢去摸索吧。

 

Context Menus  上下文菜單

Open a context menu by right-clicking in a window(Control-click on macoS)Contextmenus have the standard clipboard functions also on the Edit menu

通過在窗口中單擊鼠標右鍵(在macOS上單擊控件)打開上下文菜單。上下文菜單在“編輯”菜單上也具有標准剪貼板功能。

Cut   切割

Copy selection into the system-wide clipboard, then delete the selection    將所選內容復制到系統范圍的剪貼板中;然后刪除所選內容。

Copy   復制

Copy selection into the system-wide clipboard   將所選內容復制到系統范圍的剪貼板中。

Paste    粘貼

Insert contents of the system-wide clipboard into the current window   將系統范圍剪貼板的內容插入當前窗口。

Editor windows also have breakpoint functions. Lines with a breakpoint set arespecially marked. Breakpoints only have an effect when running under the debugger.Breakpoints for a file are saved in the user’s idlerc directory

編輯器窗口也有斷點函數。具有斷點集的行被特別標記。只有在調試器下運行時,斷點才起作用。文件的斷點保存在用戶的.idlerc目錄中。

Set Breakpoint    設置斷點

Set a breakpoint on the current line    在當前行上設置斷點。

Clear Breakpoint    清除斷點

Clear the breakpoint on that line    清除該行上的斷點。

Shell and Output windows also have the following   Shell和輸出窗口也有以下內容。

Go to file/line    轉到文件/行

Same as in Debug menu    與“調試”菜單中的相同。

The Shell window also has an output squeezing facility explained in the Python Shellwindow subsection below

Shell窗口還有一個輸出壓縮工具,下面的pythonshell窗口小節將對此進行說明。

Squeeze     擠壓

lf the cursor is over an output line,squeeze all the output between the code above andthe prompt below down to a 'Squeezed text label

如果光標位於輸出行上,請將上面的代碼和下面的提示之間的所有輸出壓縮為“壓縮文本"標簽。

 

圖11 Context菜單

十一、設置首選項(Setting preferences)

點擊“Option”,點擊“Configure IDLE”可以進入首選項設置,包括字體、文字大小等編輯器界面設置,還包括一些常規設置,例如打開IDLE默認是進Shell還是編輯器呢?還有擴展功能的使用等,都在這里面了。

 

Setting preferences    設置首選項

The font preferences, highlighting,keys,and general preferences can be changed viaConfigure IDLE on the Option menuNon-defaul user settings are saved in a .idlercdirectory in the user's home directory. Problems caused by bad user configurationfiles are solved by editing or deleting one or more of the files in idlerc

字體首選項、突出顯示、鍵和常規首選項可以通過“選項"菜單上的“配置空閑"進行更改。非默認用戶設置保存在用戶主目錄中的.idlerc目錄中。通過編輯或刪除.idlerc中的一個或多個文件,可以解決由錯誤的用戶配置文件引起的問題。

On the Font tab, see the text sample for the effect of font face and size on multiplecharacters in multiple languages. Edit the sample to add other characters of personalinterest. Use the sample to select monospaced fonts. lf particular characters haveproblems in Shell or an editor,add them to the top of the sample and try changing firstsize and then font

在“字體"選項卡上,請參閱文本示例以了解多語言中字體的字體和大小對多個字符的影響。編輯示例以添加其他個人感興趣的字符。使用示例選擇等距字體。如果特定字符在Shell或編輯器中有問題,請將其添加到示例頂部,然后嘗試更改第一個大小,然后更改字體。

On the Highlights and Keys tab, select a built-in or custom color theme and key set Touse a newer built-in color theme or key set with older IDLEs, save it as a new customtheme or key set and it well be accessible to older IDLES

在“高光和關鍵點"選項卡上,選擇內置或自定義顏色主題和關鍵點集。若要將較新的內置顏色主題或密鑰集與較舊的idle一起使用,請將其另存為新的自定義主題或密鑰集,並且較I日的idle可以訪問該主題或密鑰集。

圖12 Setting preferences

十二、文本顏色(Text colors)

在編輯器當中,用不同的顏色表示關鍵字、變量、類、字符串、注釋等等,這個請大家平常多留心,可以讓你很快發現錯誤,是一個很好的功能。通過點擊“Option”,點擊“Configure IDLE”,在打開窗口中找到“Custom Highlighting”可以進行自定義。

 

Text colors    文本顏色

ldle defaults to black on white text,but colors text with special meanings. For the shell,these are shell output,shell error, user output,and user error. For Python code,at theshell prompt or in an editor, these are keywords,builtin class and function names,names following class and def,strings,and comments. For any text window,these arethe cursor (when present), found text(when possible), and selected text.

ldle默認為黑白文本,但會給文本添加特殊含義的顏色。對於shell,這些是shell輸出、shell錯誤、用戶輸出和用戶錯誤。對於Python代碼,在shell提示下或在編輯器中,這些是關鍵字、內置類和函數名、類和def之后的名稱、字符串和注釋。對於任何文本窗口,它們是光標(如果存在)、找到的文本(如果可能)和選定的文本。

Text coloring is done in the background, so uncolorized text is occasionally visible. Tochange the color scheme, use the Configure IDLE dialog Highlighting tab.The

marking of debugger breakpoint lines in the editor and text in popups and dialogs isnot user-configurable.

文本着色是在背景中完成的,因此未着色的文本偶爾可見。要更改顏色方案,請使用“配置空閑"對話框的“亮顯"選項卡。在編輯器中標記調試器斷點行,在彈出窗口和對話框中標記文本是用戶不可配置的。

 

圖13 Text colors

 

圖14 Custom Highlighting

十三、自動縮進(Automatic indentation)

在使用if等語句時,會在下一行自動縮進4個空格。

 

Automatic indentation    自動縮進

After a block-opening statement, the next line is indented by 4 spaces (in the PythonShell window by one tab). After certain keywords (break,return etc.) the next line isdedented. In leading indentation,Backspace deletes up to 4 spaces if they are there.Tab inserts spaces (in the Python Shell window one tab),number depends on Indentwidth. Currently, tabs are restricted to four spaces due to TclTk limitations

在block opening語句之后,下一行將縮進4個空格(在Python Shel窗口中縮進一個選項卡)。在某些關鍵字(break、return等)之后,下一行是dedented。在前導縮進中,退格刪除最多4個空格(如果有)。Tab插入空格(在Python Shell窗口的一個Tab中),數字取決於縮進寬度。目前,由於TcI/Tk的限制,標簽被限制為四個空格。

See also the indent/dedent region commands on the Format menu    另請參見"格式"菜單上的“縮進/刪除區域"命令。

 

圖15 Automatic indentation

十四、Python Shell窗口

 

Python Shell window    Python Shell窗口

with IDLE'S Shell, one enters, edits, and recalls complete statements.Most consolesand terminals only work with a single physical line at a time.

使用IDLE的Shell,可以輸入、編輯和調用完整的語句。大多數控制台和終端一次只能使用一條物理線路。

When one pastes code into Shell, it is not compiled and possibly executed until onehits Retum. One may edit pasted code first lf one pastes more that one statement intoShell, the result will be a SyntaxError when multiple statements are compiled as if theywere one

當一個人將代碼粘貼到Shell中時,它不會被編譯,可能會被執行,直到點擊返回。可以先編輯粘貼的代碼。如果一個將多個語句粘貼到Shell中,當多個語句被編譯為一個語句時,結果將是一個SyntaxError。

The editing features described in previous subsections work when entering codeinteractively IDLE's Shell window also responds to the following keys

當以交互方式輸入代碼時,前面小節中描述的編輯功能可以工作。IDLE的Shell窗口還響應以下鍵。

*C-c interrupts executing command    *C-C中斷執行命令

* C-d sends end-of-file;closes window if typed at a>>prompt    *C-d發送文件結尾;如果在>>提示下鍵入,則關閉窗口

*Alt-/ (Expand word) is also useful to reduce typing     *Alt-/(展開word)也有助於減少鍵入

Command history      命令歷史記錄

* Alt-p retrieves previous command matching what you have typed On macOS use C-p

*Alt-p檢索與您鍵入的內容匹配的上一個命令。在macOS上使用C-p。

*Alt-n retrieves next On macOS use C-n    *Alt-n檢索下一個。在macoS上使用C-n。

* Return while on any previous command retrieves that command      *在任何前一個命令上返回時檢索該命令

 

圖16 Python Shell

十五、編輯器(Editor)窗口

Editor windows     編輯器窗口

IDLE may open editor windows when it starts, depending on settings and how youstart IDLE.Thereafter,use the File menu. There can be only one open editor windowfor a given file

IDLE在啟動時可能會打開編輯器窗口,具體取決於設置和啟動IDLE的方式。此后,使用“文件“菜單。對於給定的文件,只能有一個打開的編輯器窗口。

The title bar contains the name of the file, the full path, and the version of Python andIDLErunning the window The status bar contains the line number (Ln) and columnnumber (Col'). Line numbers start with 1, column numbers with 0

標題欄包含文件名、完整路徑以及運行窗口的Python和IDLE版本。狀態欄包含行號('Ln')和列號('Col)。行號以1開頭;列號以0開頭。

IDLE assumes that files with a known .py*extension contain Python code and thatother files do notRun Python code with the Run menu.

IDLE假設擴展名為.py*的文件包含Python代碼,而其他文件則不包含。使用Run菜單運行Python代碼。

 

圖17 Editor windows

以上15個Python菜單的名稱及功能翻譯可能不是很專業,但仔細體會下來也差不多,希望你多去使用,也不一定要使用中文版,用多了自然就明白是什么作用了。

 

————————————————

版權聲明:本文為CSDN博主「weixin_39900045」的原創文章,遵循CC 4.0 BY-SA版權協議,轉載請附上原文出處鏈接及本聲明。

原文鏈接:https://blog.csdn.net/weixin_39900045/article/details/111654032


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM