资源描述:
《Learning Python, Fourth Edition (2009)》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、LearningPythonFOURTHEDITIONLearningPythonMarkLutzBeijing•Cambridge•Farnham•Köln•Sebastopol•Taipei•TokyoLearningPython,FourthEditionbyMarkLutzCopyright©2009MarkLutz.Allrightsreserved.PrintedintheUnitedStatesofAmerica.PublishedbyO’ReillyMedia,Inc.,1005Grav
2、ensteinHighwayNorth,Sebastopol,CA95472.O’Reillybooksmaybepurchasedforeducational,business,orsalespromotionaluse.Onlineeditionsarealsoavailableformosttitles(http://my.safaribooksonline.com).Formoreinformation,contactourcorporate/institutionalsalesdepartme
3、nt:(800)998-9938orcorporate@oreilly.com.Editor:JulieSteeleIndexer:JohnBickelhauptProductionEditor:SumitaMukherjiCoverDesigner:KarenMontgomeryCopyeditor:RachelHeadInteriorDesigner:DavidFutatoProductionServices:NewgenNorthAmericaIllustrator:RobertRomanoPri
4、ntingHistory:March1999:FirstEdition.December2003:SecondEdition.October2007:ThirdEdition.September2009:FourthEdition.NutshellHandbook,theNutshellHandbooklogo,andtheO’ReillylogoareregisteredtrademarksofO’ReillyMedia,Inc.LearningPython,theimageofawoodrat,an
5、drelatedtradedressaretrademarksofO’ReillyMedia,Inc.Manyofthedesignationsusedbymanufacturersandsellerstodistinguishtheirproductsareclaimedastrademarks.Wherethosedesignationsappearinthisbook,andO’ReillyMedia,Inc.,wasawareofatrademarkclaim,thedesignationsha
6、vebeenprintedincapsorinitialcaps.Whileeveryprecautionhasbeentakeninthepreparationofthisbook,thepublisherandauthorassumenoresponsibilityforerrorsoromissions,orfordamagesresultingfromtheuseoftheinformationcon-tainedherein.ISBN:978-0-596-15806-4[M]125294466
7、6ToVera.Youaremylife.TableofContentsPreface...................................................................xxxiPartI.GettingStarted1.APythonQ&ASession...................................................3WhyDoPeopleUsePython?3SoftwareQuality4DeveloperPr
8、oductivity5IsPythona“ScriptingLanguage”?5OK,butWhat’stheDownside?7WhoUsesPythonToday?7WhatCanIDowithPython?9SystemsProgramming9GUIs9InternetScripting10ComponentIntegration10DatabaseProgramming11RapidPrototyping11Numericand