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