O'Reilly Learning Python (3rd Edition).pdf

(2699 KB) Pobierz
THIRD EDITION
Learning Python
Mark Lutz
Beijing
Cambridge
Farnham
Köln
Paris
Sebastopol
Taipei
Tokyo
754146839.015.png 754146839.016.png 754146839.017.png 754146839.018.png 754146839.001.png 754146839.002.png 754146839.003.png 754146839.004.png
Learning Python, Third Edition
by Mark Lutz
Copyright © 2008 O’Reilly Media, Inc. All rights reserved.
Printed in the United States of America.
Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472.
O’Reilly books may be purchased for educational, business, or sales promotional use. Online editions
are also available for most titles ( safari.oreilly.com ). For more information, contact our
corporate/institutional sales department: (800) 998-9938 or corporate@oreilly.com .
Editor: Tatiana Apandi
Production Editor: Sumita Mukherji
Copyeditor: Rachel Head
Proofreader: Sumita Mukherji
Indexer: Julie Hawks
Cover Designer: Karen Montgomery
Interior Designer: David Futato
Illustrator: Robert Romano
Printing History:
March 1999: First Edition.
December 2003: Second Edition.
October 2007: Third Edition.
Nutshell Handbook, the Nutshell Handbook logo, and the O’Reilly logo are registered trademarks of
O’Reilly Media, Inc., LearningPython , the image of a wood rat, and related trade dress are trademarks
of O’Reilly Media, Inc.
Java is a trademark of Sun Microsystems, Inc. .NET is a registered trademark of Microsoft
Corporation.
Manyofthedesignationsusedbymanufacturersandsellerstodistinguishtheirproductsareclaimedas
trademarks. Where those designations appear in this book, and O’Reilly Media, Inc. was aware of a
trademark claim, the designations have been printed in caps or initial caps.
Whileeveryprecautionhasbeentakeninthepreparationofthisbook,thepublisherandauthorassume
no responsibility for errors or omissions, or for damages resulting from the use of the information
contained herein.
This book uses RepKover , a durable and flexible lay-flat binding.
ISBN-10: 0-596-51398-4
ISBN-13: 978-0-596-51398-6
[M]
754146839.005.png 754146839.006.png 754146839.007.png
To Vera.
You are my life.
754146839.008.png
754146839.009.png
Table of Contents
Preface
xxix
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Part I.
Getting Started
1.
A Python Q&A Session
3
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Why Do People Use Python?
3
Software Quality
5
Developer Productivity
5
Is Python a “Scripting Language”?
6
OK, but What’s the Downside?
7
Who Uses Python Today?
8
What Can I Do with Python?
9
Systems Programming
9
GUIs
9
Internet Scripting
10
Component Integration
10
Database Programming
11
Rapid Prototyping
11
Numeric and Scientific Programming
11
Gaming, Images, AI, XML, Robots, and More
12
What Are Python’s Technical Strengths?
12
It’s Object Oriented
12
It’s Free
13
It’s Portable
13
It’s Powerful
14
It’s Mixable
15
vii
754146839.010.png 754146839.011.png 754146839.012.png 754146839.013.png 754146839.014.png
Zgłoś jeśli naruszono regulamin