• You know little to nothing about Python.
If you know Python, this book will still be helpful as a reference or a source of
tips and tricks you may not be aware of.
How This Book Is Organized
This book gives you an overview of Python; the lowdown about all of its major parts,
structures, and libraries; and a glimpse into some more advanced features. You also find
out where to go to discover more.
Part I: Getting Started
In this part, we introduce Python and situate it among the myriad other programming
languages available. Python is good for some things and not for others; you find out
which is which. We provide a hands-on introduction to some of Python's abilities, using
its helpful interactive mode and its IDLE programming environment. We briefly describe
each of Python's basic building blocks and show how all these blocks come together by
dissecting a working program. We sketch an overview of how professional programmers
design programs and debug code and show you how to put these practices to work to
make your own programming life easier.
Part II: Building Blocks
Python has six basic data types and many ways to work with each of them. In this part,
we describe how to work with strings (chunks of text), numbers, lists and tuples (both of
which store multiple data elements), dictionaries (which associate one element with
another), and sets (which always contain unique elements, never duplicates).
Part III: Structures
Python code usually comes in chunks, both small and big, and each chunk does a
particular thing. This part also includes a brief introduction to some advanced features
and the new features of Python 2.5.
Part IV: Libraries
Python comes with everything you need to write a very powerful program, and other
people have already solved lots of programming conundrums for you. Its libraries include
primary services such as communication with the operating system, text processing tools,
various ways of reading and writing information to disk, and Internet access methods.
4
评论0
最新资源