1. 首页
  2. 编程语言
  3. Python
  4. Learning Python English version 4th Edition 2009

Learning Python English version 4th Edition 2009

上传者: 2020-07-30 15:16:23上传 PDF文件 7.4MB 热度 34次
Learning Python, English version, 4th Edition, 2009Learning PythonFOURTH EDITIONLearning PythonMark Lutz○ REILLYBeijing· Cambridge: Farnham·Koln· Sebastopol· alper·TokyLearning Python, Fourth Editionby mark liCopyright o 2009 Mark Lutz. All rights reservedPrinted in the United States of americaPublished by O'Reilly Media, Inc, 1005 Gravenstein Highway North, Sebastopol, CA 95472O' Reilly books may be purchased for educational, business, or sales promotional use Online editionsarealsoavailableformosttitles(http://my.safaribooksonline.com).Formoreinformationcontactourcorporate/institutionalsalesdepartment:(800)998-9938orcorporate@oreilly.comEditor: Julie SteeleIndexer: John BickelhauptProduction Editor: Sumita MukherjiCover Designer: Karen MontgomeryCopyeditor: Rachel HeadInterior Designer David FutatoProduction Services: Newgen North America ustrator: Robert romanoPrinting historMarch 1999First editionDecember 2003 Second editionOctober 2007Third ediSeptember 2009: Fourth EditionNutshell Handbook, the Nutshell Handbook logo, and the O'Reilly logo are registered trademarks ofO'Reilly Media, Inc. Learning Python, the image of a wood rat, and related trade dress are trademarksof O'Reilly Media, IrMany of the designations used by manufacturers and sellers to distinguish their products are claimed astrademarks. Where those designations appear in this book, and O'Reilly mediawas aware of atrademark claim, the designations have been printed in caps or initial capsWhile every precaution has been taken in the preparation of this book, the publisher and author assumeno responsibility for errors or omissions, or for damages resulting from the use of the information con-tained hereinISBN:978-0-596-15806-4[MI1252944666To VeYou are my lifeTable of contentsPreface。。....XXXlPart L. Getting Started1. A Python Q&A SessionWhy do people use pythSoftware QualityDeveloper productivityIs Python a“ Scripting language”?OK. but What's the downside?Who Uses Python today?334557799What Can I Do with Python?Systems ProgrammingGUIsInternet ScriptingComponent Integration10Database ProgrammingRapid prototypingNumeric and Scientific ProgrammingGaming, Images, Serial Ports, XML, Robots, and MoreHow Is Python Supported?What Are Pythons Technical StrengthsIt's Object-OrientedIt's free13It's portable14It's Powerful15It's MixableIt's easy to use16It’ s easy to learn17It's Named After Monty PythonHow Does Python Stack Up to Language X?Chapter summary18Test Your Knowledge: Quiz19Test Your Knowledge: Answers2. How Python runs programs23Introducing the Python InterpreterProgram execution24The Programmer's View24Python’ s View26Execution Model variations29Python Implementation Alternatives29Execution Optimization Tools30Frozen binaries32Other Execution Options33Future possibilities?33Chapter summaryTest Your Knowledge: Quiz34Test Your Knowledge: Answers343. How You run Programs35The Interactive Prompt35Running Code Interactively37Why the interactive Prompt?38Using the Interactive PromptSystem Command Lines and files41A First Script42Running files with Command linesUsing Command Lines and filesUnix Executable Scripts(#!)46Clicking File Icons47Clicking Icons on Windows47The input TrickOther Icon -Click limitations50Module imports and reloads51The grander Module story: Attributesimport and reload Usage notes56USing exec to Run Module filesThe IDLE User Interface58IDLE Basics58Using IDlEAdvanced idle tools62Other ides63Other Launch Options64ⅶ ii Table of Contents
下载地址
用户评论