How to fix idle in a few words

Source: Internet
Author: User

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

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.