Friday 25 May 2012

>>> help()

maybe help ( ) can reduce my dependence on the internet
 
Welcome to Python 2.7!  This is the online help utility

If this is your first time using Python, you should definitely check out
the tutorial on the Internet at http://docs.python.org/tutorial/.

Enter the name of any module, keyword, or topic to get help on writing
Python programs and using Python modules.  To quit this help utility and
return to the interpreter, just type "quit".

To get a list of available modules, keywords, or topics, type "modules",
"keywords", or "topics".  Each module also comes with a one-line summary
of what it does; to list the modules whose summaries contain a given word
such as "spam", type "modules spam".

help> LISTS
Mutable Sequence Types
**********************

List and ``bytearray`` objects support additional operations that
allow in-place modification of the object. 
 . . . example of help on topics

help> NAMESPACES
Naming and binding
******************

*Names* refer to objects.  Names are introduced by name binding
operations. Each occurrence of a name in the program text refers to
the *binding* of that name established in the innermost function block
containing the use.

A *block* is a piece of Python program text that is executed as a
unit. The following are blocks: a module, a function body, and a class
definition. Each command typed interactively is a block.  A script
file (a file given as standard input to the interpreter or specified
on the interpreter command line the first argument) is a code block.
...  next help with a module

help> turtle
Help on module turtle:

NAME
    turtle

FILE
    c:\python27\lib\lib-tk\turtle.py

DESCRIPTION
    Turtle graphics is a popular way for introducing programming to
    kids. It was part of the original Logo programming language developed
    by Wally Feurzig and Seymour Papert in 1966.
   
    Imagine a robotic turtle starting at (0, 0) in the x-y plane. Give it
    the command turtle.forward(15), and it moves (on-screen!) 15 pixels in
    the direction it is facing, drawing a line as it moves. Give it the
    command turtle.left(25), and it rotates in-place 25 degrees clockwise.
   
    By combining together these and similar commands, intricate shapes and
    pictures can easily be drawn.
   
    ----- turtle.py


help> keywords

Here is a list of the Python keywords.  Enter any keyword to get more help.

and                 elif                if                  print
as                  else                import              raise
assert              except              in                  return
break               exec                is                  try
class               finally             lambda              while
continue            for                 not                 with
def                 from                or                  yield
del                 global              pass               

helpful>

No comments:

Post a Comment