Python3基礎教程 Lynda.com.Python3 Enssential Training 英文版 CD 由於python的功能強大,簡潔和完全的面向對象,python已經成為很多大型組織包括谷歌,雅虎和IBM的腳本語言的理想選擇。在本教程裡,BillWeinman致力於教給大家怎樣用python3來創造出完美設計的腳本和管理已經存在的項目。本教程覆蓋了基本的python3的語法和用法,包括高級特性比如面向對象,擴展和異常。教程中示範項目包括了一個標準化的數據庫藉口和一個完全實現數據的創建,查詢,更新,刪除的應用程序。練習是和教程同步的。 教程中的內容包括: *面向有經驗的開發者的Python3的快速介紹。 *創建函數和對象 *使用python的內置對象和類 *使用循環和迭代來讓代碼循環執行 *理解並使用條件表達式 *用繼承來創建語句 *用對象和庫來重用代碼 *使用異常來處理錯誤 Duetoitspower,simplicity,andcompleteobjectmodel,Pythonhasbecomethescriptinglanguageofchoiceformanylargeorganizations,includingGoogle,Yahoo,andIBM.InPython3EssentialTraining,BillWeinmandemonstrateshowtousePython3tocreatewell-designedscriptsandmaintainexistingprojects.Thiscoursecoversthebasicsofthelanguagesyntaxandusage,aswellasadvancedfeaturessuchasobjects,generators,andexceptions.ExampleprojectsincludeanormalizeddatabaseinterfaceandacompleteworkingCRUDapplication.Exercisefilesaccompanythecourse. Topicsinclude: *APython3quickstartforexperienceddevelopers *Creatingfunctionsandobjects *UsingPython’sbuilt-inobjectsandclasses *Repeatingcodewithloopsanditerators *Understandingandusingconditionalexpressions *Creatingsequenceswithgenerators *Reusingcodewithobjectsandlibraries *Handlingerrorswithexceptions ExerciseFiles ex.filesvideo Theadvantageofexercisefiles. Exercisefilesarecopiesoftheidenticalfiles(documents,photosandsoon)theauthorusesthroughoutthiscourse.Thefileswillhelpyoumakethemostofyourlearningexperiencebyprovidingyoutheopportunitytoopentheminyourownsoftwareandfollowalongwithtutorials.ExercisefilesareavailabletoPremiumSubscribersonly.Learnmore. 目錄: 1.Introduction Welcome01:32 UnderstandingprerequisitesforPython02:04 Usingtheexercisefiles01:38 33:292.PythonQuickStart Gettingstartedwith"HelloWorld"04:43 Selectingcodewithconditionals04:45 Repeatingcodewithaloop04:13 Reusingcodewithafunction02:43 Creatingsequenceswithgeneratorfunctions02:46 Reusingcodeanddatawithaclass04:39 Greaterreusabilitywithinheritanceandpolymorphism07:17 Handlingerrorswithexceptions02:23 17:013.SettingUpPython InstallingPython3andEclipseforMac08:45 InstallingPython3andEclipseforWindows08:16 28:004.GeneralSyntax Creatingamainscript03:27 UnderstandingwhitespaceinPython04:08 Commentingcode03:28 Assigningvalues03:37 Selectingcodeandvalueswithconditionals04:46 Creatingandusingfunctions03:54 Creatingandusingobjects04:40 31:235.Variables,Objects,andValues UnderstandingvariablesandobjectsinPython02:46 Distinguishingmutableandimmutableobjects02:41 Usingnumbers03:34 Usingstrings06:38 Aggregatingvalueswithlistsandtuples04:55 Creatingassociativelistswithdictionaries04:24 Findingthetypeandidentityofavariable04:45 SpecifyinglogicalvalueswithTrueandFalse01:40 09:426.Conditionals Selectingcodewithifandelseconditionalstatements02:22 Settingmultiplechoiceswithelif02:14 Understandingotherstrategiesformultiplechoices02:38 Usingtheconditionalexpression02:28 11:267.Loops Creatingloopswithwhile01:27 Iteratingwithfor03:54 Enumeratingiterators03:22 Controllingloopflowwithbreak,continue,andelse02:43 23:288.Operators Performingsimplearithmetic02:14 Operatingonbitwisevalues03:30 Comparingvalues03:32 OperatingonBooleanvalues02:59 Operatingonpartsofacontainerwiththesliceoperator06:52 Understandingoperatorprecedence04:21 11:349.RegularExpressions Usingtheremodule01:04 Searchingwithregularexpressions03:12 Replacingwithregularexpressions03:29 Reusingregularexpressionswithre.compile03:49 09:1010.Exceptions Learninghowexceptionswork01:18 Handlingexceptions04:15 Raisingexceptions03:37 23:0111.Functions Definingfunctions06:23 Usinglistsofarguments02:26 Usingnamedfunctionarguments04:32 Returningvaluesfromfunctions01:55 Creatingasequencewithageneratorfunction07:45 47:2912.Classes Understandingclassesandobjects05:12 Usingmethods06:12 Usingobjectdata10:04 Understandinginheritance05:11 Applyingpolymorphismtoclasses07:13 Usinggenerators09:48 Usingdecorators03:49 18:5413.StringMethods Understandingstringsasobjects03:25 Workingwithcommonstringmethods05:24 Formattingstringswithstr.format05:31 Splittingandjoiningstrings02:49 Findingandusingstandardstringmethods01:45 25:2714.Containers Creatingsequenceswithtuplesandlists04:06 Operatingonsequenceswithbuilt-inmethods05:50 Organizingdatawithdictionaries04:56 Operatingoncharacterdatawithbytesandbytearrays10:35 11:4615.FileI/O Openingfiles02:04 Readingandwritingtextfiles04:33 Readingandwritingbinaryfiles05:09 21:2716.Databases CreatingadatabasewithSQLite306:56 Creating,retrieving,updating,anddeletingrecords07:31 Creatingadatabaseobject07:00 18:2717.Modules Usingstandardlibrarymodules08:00 Findingthird-partymodules05:47 Creatingamodule04:40 23:1118.Debugging Dealingwithsyntaxerrors08:19 Dealingwithruntimeerrors04:00 Dealingwithlogicalerrors04:22 Usingunittests06:30 19:5619.BuildingaDatabaseApplication Normalizingadatabaseinterface06:39 Deconstructingadatabaseapplication08:09 Displayingrandomentriesfromadatabase05:08 00:29Conclusion Goodbye00:29