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