Python idle introduction and usage tips

Source: Internet
Author: User

Introduction: My Environment windows 7 ,python2.7

IDLE Introduction:

is a visual GUI editor for Python

You can enter commands line by row

Can be easily copied, pasted and other operations

Common command-line commands:

Import Module_name:

Import Module

Example: Import sys

Dir ():

View the names of members of modules, methods, and so on

Example:dir (SYS),dir (sys.path) , etc.

Similar operations:sys.+' \ t ',sys.path.+' \ t '

Help ():

View the names and usage of members of modules, methods, etc.

Example: Help(SYS),help(Sys.path) , etc.

Direct input:

Enter the module name, method name:

Example:sys,sys.path; determine The path of this module/method or other

Input variables, attributes:

Example:sys.__name__,str #str = ' Hello world '; the value of this variable / property is displayed after determination

Reference:IDLE; network

PostScript: If there are errors and omissions, welcome correction, there will be time to update

Python idle introduction and usage tips

Related Article

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.