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