Http://www.javaeye.com/topic/603535
Getting started with the python editor idle
Download python for installation. This tool is provided by default.
Start->Program-> Python 2. */3. *-> idle (Python GUI)
In this way, the python shell-> file-> New window (CTRL + n) is opened)
The Python editor appears.
WriteCodeFor example:
1 Print ( ' Hello World ' )
Save the file as helloworld. py (remember to add the py extension, which is not automatically added by default ).
Press F5 in the editor window to view the result in Python shell.
How to debug
1. Set breakpoints: Right-click the line of code to be debugged in the python editor and choose set breakpoint. Then the background color of the line turns yellow.
2. Open Debugger: Python shell-> debug-> Debugger
3. Press F5 in the edit window.
4. debug process omitted
* Go indicates that the runtime is equivalent to the F8 of eclipse. However, after pressing F5, you must go for a while before proceeding. By default, it is not running.
* Step indicates that one step is equivalent to the F5 of Eclipse.
* Over indicates skipping the function method, which is equivalent to F6 of Eclipse.
* Out indicates that the function is equivalent to F7 of Eclipse.
Idle Editor Shortcut
Automatic completion code Alt +/(find the code already written in the editor to complete)
Completion prompt Ctrl + Shift + space (conflicts with the input method by default, modified)
(Method: Options-> Configure idle... -> Keys-> force-open-Completions
When prompted, you only need to press a space. Otherwise, you do not need to press other keys to automatically complete the up and down keys)
CTRL + z
Redo Ctrl + Shift + z
Press Ctrl +]
Press Ctrl + [
Add Alt + 3
Comment out Alt + 4
Python shell shortcut
Auto-completion is the same as above
Previous command Alt + P
Next command Alt + n