版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
ComputerProgrammingUnit5实用IT英语(第4版)INFORMATIONCommunicationsTECHNOLOGYInthisunit,wearefocusingonthefollowingissues.programminglanguage;cross-platform;programmer;compiler;function;variable;instruction;human-readable;machine-readable;object_x0002_orientedprogramming(OOP)OutlineThebasicsofCprogramming.Object-orientedprogramminganditsfeatures.PythonProgrammingLanguage.Tipsonhowtowriteprogramsingoodstyle.Personalitiesofagreatprogrammer.ProfessionalTerminologyDialogue:HowtoChoosetheRightProgrammingLanguagetoStudySection
2ReadingTextA:TheBasicsofCProgrammingTextB:Object-OrientedProgrammingTextC:PythonProgrammingLanguageOccupationalTips:TipsonGoodProgrammingStyleClassActivities:Discussionon10TraitsofaGoodProgrammerCONTENTSSection
1Section
3Section
4Dialogue:HowtoChoosetheRightProgrammingLanguagetoStudy01Directions:Readthefollowingdialogueinpairsandtalkabouttheprogramminglanguages.Situation:Situation:Jessiewantstobeaprogrammer,sosheasksherfriendTomtogivehersomeadviceonhowtochoosetherightprogramminglanguagetostudy.Tom:Soyouarelookingintobecomingaprogrammer?Wheredoyoustart?Jessie:IthinkIamwelleducatedinmathsandamabletostandsittinginfrontofthecomputerforhours.WhatIneedtodonowisjusttolearnsomeprogrammingknowledge.Tom:It’snotassimpleasclickingabuttonthatwillcreateyourveryownprogram.Whenitcomestoprogrammingforthecomputer,thereareabunchofcomputerprogramminglanguagesoutthere.Jessie:IheardthatthethreemostusedprogramminglanguagesoutthereareC++,C#,andJava.Thesethreearetheindustrystandardasofnow.However,thestandardscanchange.HowshallIdealwithit?Dialogue:HowtoChoosetheRightProgrammingLanguagetoStudy01Tom:Well,Idon’tthinkthestandardswillchangegreatly.Jessie:Whatarethedifferencesbetweenthesethreelanguages?Tom:TheoldestofallthreeprogramminglanguagesisC++.C++hasbeenaroundforover20yearsanditisusedmostbythecomputerprogrammingindustry.C++islikedbymanybecauseitoffersallthefeaturesafullobject-orientedprogramminglanguagelikejavaoffers,whilelettingyouchoosewhetheryouwanttoprograminanobject-orientedmanner.Jessie:HowaboutC#?Tom:ThenewestprogramminglanguageoutthereisC#.C#isaprogramminglanguagecreatedbyMicrosoft.ItcanbesummedupasamixbetweenC++andJava.Itisgettingmorepopularastimegoeson.Jessie:I’veheardalotofpeopleareusingJava.WhataboutJava?Tom:Javaisagreatprogramminglanguagejustbecauseithasonefeaturethatneitheroftheothershas.ItcanbeusedthroughaWebbrowseraswell.Thishasearneditalotoffame.AnothergreatthingaboutJavaisthatitiscross-platform.Jessie:Whatdoyoumeanbycross-platform?Dialogue:HowtoChoosetheRightProgrammingLanguagetoStudy01Tom:ItmeansthatapieceofcodewritteninWindowscanbetakenandcompiledunderanotheroperatingsystemsuchasLinuxorApple.Jessie:ItseemsJavawouldbemychoice.Notesprogrammer01clickindustrystandardfeatureobject-oriented02030405面向对象程序员点击行业标准功能Webbrowsercross-platform0607跨平台网页浏览器compile08编译
Dialogue:HowtoChoosetheRightProgrammingLanguagetoStudySection
2ReadingTextA:TheBasicsofCProgrammingTextB:Object-OrientedProgrammingTextC:PythonProgrammingLanguageOccupationalTips:TipsonGoodProgrammingStyleClassActivities:Discussionon10TraitsofaGoodProgrammerCONTENTSSection
1Section
3Section
4TextA:TheBasicsofCProgramming01IntroductiontotheBasicsofCProgrammingTheCprogramminglanguageisapopularandwidelyusedprogramminglanguageforcreatingcomputerprograms.ProgrammersaroundtheworldembraceCbecauseitgivesmaximumcontrolandefficiencytotheprogrammer.Ifyouareaprogrammerorifyouareinterestedinbecomingaprogrammer,thereareacoupleofbenefitsyougainfromlearningC.Youwillbeabletoreadandwritecodeforalargenumberofplatforms—everythingfrommicrocontrollerstothemostadvancedscientificsystemscanbewritteninC,andmanymodernoperatingsystemsarewritteninC.Thejumptotheobject-orientedC++languagebecomesmucheasier.C++isanextensionofC,anditisnearlyimpossibletolearnC++withoutlearningCfirst.TextA:TheBasicsofCProgramming01WhatisCCisacomputerprogramminglanguage.ThatmeansthatyoucanuseCtocreatelistsofinstructionsforacomputertofollow.Cisoneofthousandsofprogramminglanguagescurrentlyinuse.Chasbeenaroundforseveraldecadesandhaswonwidespreadacceptancebecauseitgivesprogrammersmaximumcontrolandefficiency.Cisaneasylanguagetolearn.Itisabitmorecrypticinitsstylethansomeotherlanguages,butyougetbeyondthatfairlyquickly.Ciswhatiscalledacompiledlanguage.ThismeansthatonceyouwriteyourCprogram,youmustrunitthroughaCcompilertoturnyourprogramintoanexecutablethatthecomputercanrun(execute).TheCprogramisthehuman-readableform,whiletheexecutablethatcomesoutofthecompileristhemachine-readableandexecutableform.WhatthismeansisthattowriteandrunaCprogram,youmusthaveaccesstoaCcompiler.IfyouareusingaUNIXmachine(forexample,ifyouarewritingCGIscriptsinConyourhost’sUNIXcomputerorifyouareastudentworkingonalab’sUNIXmachine),theCcompilerisavailableforfree.Itiscalledeither“cc”or“gcc”andisavailableonthecommandline.Ifyouareastudent,thentheschoolwilllikelyprovideyouwithacompiler—findoutwhattheschoolisusingandlearnaboutit.IfyouareworkingathomeonaWindowsmachine,youaregoingtoneedtodownloadafreeCcompilerorpurchaseacommercialcompiler.AwidelyusedcommercialcompilerisMicrosoft’sVisualC++environment(itcompilesbothCandC++programs).Unfortunately,thisprogramcostsseveralhundreddollars.TextA:TheBasicsofCProgramming01Ifyoudonothavehundredsofdollarstospendonacommercialcompiler,thenyoucanuseoneofthefreecompilersavailableontheWeb.TheSimplestCProgramLet’sstartwiththesimplestpossibleCprogramanduseitbothtounderstandthebasicsofCandtheCcompilationprocess.Typethefollowingprogramintoastandardtexteditor(vioremacsonUNIX,NotepadonWindowsorTeachTextonaMacintosh).Thensavetheprogramtoafilenamedsamp.c.Ifyouleaveoff.c,youwillprobablygetsomesortoferrorwhenyoucompileit,somakesureyourememberthe.c.Also,makesurethatyoureditordoesnotautomaticallyappendsomeextracharacters(suchas.txt)tothenameofthefile.Here’sthefirstprogram.#include<stdio.h>intmain(){printf("Thisisoutputfrommyfirstprogram!\n");return0;}TextA:TheBasicsofCProgramming01Whenexecuted,thisprograminstructsthecomputertoprintouttheline“Thisisoutputfrommyfirstprogram!”thentheprogramquits.Youcan’tgetmuchsimplerthanthat!Tocompilethiscode,takethefollowingsteps.OnaUNIXmachine,typegccsamp.c-osamp(ifgccdoesnotwork,trycc).ThislineinvokestheCcompilercalledgcc,asksittocompilesamp.candasksittoplacetheexecutablefileitcreatesunderthenamesamp.Toruntheprogram,typesamp(or,onsomeUNIXmachines,./samp).OnaDOSorWindowsmachineusingDJGPP,atanMS-DOSprompttypegccsamp.c-osamp.exe.ThislineinvokestheCcompilercalledgcc,asksittocompilesamp.candasksittoplacetheexecutablefileitcreatesunderthenamesamp.exe.Toruntheprogram,typesamp.Ifyouareworkingwithsomeothercompilerordevelopmentsystem,readandfollowthedirectionsforthecompileryouareusingtocompileandexecutetheprogram.Youshouldseetheoutput“Thisisoutputfrommyfirstprogram!”whenyouruntheprogram.Hereiswhathappenedwhenyoucompiledtheprogram.Ifyoumistypetheprogram,iteitherwillnotcompileoritwillnotrun.Iftheprogramdoesnotcompileordoesnotruncorrectly,edititagainandseewhereyouwentwronginyourtyping.Fixtheerrorandtryagain.TextA:TheBasicsofCProgramming01Let’swalkthroughthisprogramandstarttoseewhatthedifferentlinesaredoing.ThisCprogramstartswith#include<stdio.h>.Thislineincludesthe“standardI/Olibrary”intoyourprogram.ThestandardI/Olibraryletsyoureadinputfromthekeyboard(called“standardin”),writeoutputtothescreen(called“standardout”),processtextfilesstoredonthedisk,andsoon.Itisanextremelyusefullibrary.Chasalargenumberofstandardlibrarieslikestdio,includingstring,timeandmathlibraries.Alibraryissimplyapackageofcodethatsomeoneelsehaswrittentomakeyourlifeeasier.Thelineintmain()declaresthemainfunction.EveryCprogrammusthaveafunctionnamedmainsomewhereinthecode.Atruntime,programexecutionstartsatthefirstlineofthemainfunction.InC,the{and}symbolsmarkthebeginningandendofablockofcode.Inthiscase,theblockofcodemakingupthemainfunctioncontainstwolines.TextA:TheBasicsofCProgramming01TheprintfstatementinCallowsyoutosendoutputtostandardout(forus,thescreen).Theportioninquotesiscalledtheformatstringanddescribeshowthedataistobeformattedwhenprinted.Theformatstringcancontainstringliteralssuchas“Thisisoutputfrommyfirstprogram!”,symbolsforcarriagereturns(\n),andoperatorsasplaceholdersforvariables.IfyouareusingUNIX,youcantypeman3printftogetcompletedocumentationfortheprintffunction.Ifnot,seethedocumentationincludedwithyourcompilerfordetailsabouttheprintffunction.Thereturn0;linecausesthefunctiontoreturnanerrorcodeof0(noerror)totheshellthatstartedexecution.NewWords&Expressionsprogramming01programmer02n.硬件n.显示器;监视器0304embraceefficiencyv.抓住(机会等);欣然接受(提议等)n.效率;效能;功效TextA:TheBasicsofCProgramming01microcontroller05instruction06n.微型控制器n.指令1314libraryfunctionn.程序库n.函数cryptic07compiler08adj.神秘的;隐藏的n.编译器1516carriagereturnoperator回车;换行字符n.操作符executable09commandline10n.可执行的;实行的命令行;指令行1718placeholdervariablen.位置标志符n.变量append11invoke12v.附加v.调用19shelln.壳,UNIX操作系统中的一部分,是使用者与系统的界面TextA:TheBasicsofCProgramming01Ⅰ.Fillintheblankswiththerightwords.Exercisescompiledcompilercontrolefficiencyexecutablehuman-readableinstructions
machine-readableprogrammersprogrammingCisacomputer____________language.ThatmeansthatyoucanuseCtocreatelistsof________foracomputertofollow.Cisoneofthousandsofprogramminglanguagescurrentlyinuse.Chasbeenaroundforseveraldecadesandhaswonwidespreadacceptancebecauseitgives________maximum________and________.Ciswhatiscalleda________language.ThismeansthatonceyouwriteyourCprogram,youmustrunitthroughaC________toturnyourprogramintoan________thatthecomputercanrun.TheCprogramisthe_______________form,whiletheexecutablethatcomesoutofthecompileristhe________________andexecutableform.WhatthismeansisthattowriteandrunaCprogram,youmusthaveaccesstoaCcompiler.programminginstructionsprogrammersefficiencycompiledcontrolcompilerexecutablehuman-readablemachine-readableTextA:TheBasicsofCProgramming01Ⅱ.Decidewhetherthefollowingstatementsaretrueorfalse.Exercises()1.BothCandC++areobject-orientedlanguages.()2.AwidelyusedCcompilerisMicrosoft’sVisualC++environment,anditisfreetodownload.()3.AstandardtexteditorforonWindowsoperatingsystemisTextpad.()4.Alibraryisapackageofcodethatsomeoneelsehaswrittenforotherprogrammerstousebysimplyincludingthemintotheircode.()5.EveryCprogrammusthaveafunctionnamedmainatthebeginninginthecodebecauseprogramexecutionstartsfromthemainfunction.FFFTFTextB:Object-OrientedProgramming01Object-Orientedprogramming(OOP)isaprogrammingparadigmthatuses“objects”——datastructuresconsistingofdatafieldsandmethods,andtheirinteractionstodesignapplicationsandcomputerprograms.Programmingtechniquesmayincludefeaturessuchasinformationhiding,dataabstraction,encapsulation,modularity,polymorphism,andinheritance.ManymodernprogramminglanguagesnowsupportOOP,suchasC++,Java,andPython.AsurveybyDeborahJ.Armstrongofnearly40yearsofcomputingliteratureidentifiedanumberof“quarks”,orfundamentalconcepts,foundinthestrongmajorityofdefinitionsofOOP.Theyarethefollowing.ClassDefinestheabstractcharacteristicsofathing(object),includingthething’scharacteristics(itsattributes,fieldsorproperties)andthething’sbehaviors(thethingsitcando,ormethods,operationsorfeatures).Onemightsaythataclassisablueprintorfactorythatdescribesthenatureofsomething.Forexample,theclassDogwouldconsistoftraitssharedbyalldogs,suchasbreedandfurcolor(characteristics),andtheabilitytobarkandsit(behaviors).Classesprovidemodularityandstructureinanobject-orientedcomputerprogram.Thecodeforaclassshouldberelativelyself-contained(generallyusingencapsulation).Collectively,thepropertiesandmethodsdefinedbyaclassarecalledmembers.TextB:Object-OrientedProgramming01ObjectApattern(exemplar)ofaclass.TheclassofDog(Figure5-1)definesallpossibledogsbylistingthecharacteristicsandbehaviorstheycanhave;theobjectLassieisoneparticulardog,withparticularversionsofthecharacteristics.ADoghasfur;Lassiehasbrown-and-whitefur.Figure5-1TheClassofDogTextB:Object-OrientedProgramming01InstanceOnecanhaveaninstanceofaclassoraparticularobject.Theinstanceistheactualobjectcreatedatruntime.Inprogrammerjargon,theLassieobjectisaninstanceoftheDogclass.Thesetofvaluesoftheattributesofaparticularobjectiscalleditsstate.Theobjectconsistsofstateandthebehaviorthat’sdefinedintheobject’sclass.MethodAnobject’sabilities.Inlanguage,methods(sometimesreferredtoas“functions”)areverbs.Lassie,beingaDog,hastheabilitytobark.Sobark()isoneofLassie’smethods.Shemayhaveothermethodsaswell,forexamplesit()oreat()orwalk()orsaveTimmy().Withintheprogram,usingamethodusuallyaffectsonlyoneparticularobject;allDogscanbark,butyouneedonlyoneparticulardogtodothebarking.Messagepassing“Theprocessbywhichanobjectsendsdatatoanotherobjectoraskstheotherobjecttoinvokeamethod.”Alsoknowntosomeprogramminglanguagesasinterfacing.Forexample,theobjectcalledBreedermaytelltheLassieobjecttositbypassinga“sit”messagewhichinvokesLassie’s“sit”method.TextB:Object-OrientedProgramming01Inheritance“Subclasses”aremorespecializedversionsofaclass,whichinheritattributesandbehaviorsfromtheirparentclasses,andcanintroducetheirown.Forexample,theclassDogmighthavesub-classescalledCollie,Chihuahua,andGoldenRetriever.Inthiscase,LassiewouldbeaninstanceoftheColliesubclass.SupposetheDogclassdefinesamethodcalledbark()andapropertycalledfurColor.Eachofitssub-classes(Collie,Chihuahua,andGoldenRetriever)willinheritthesemembers,meaningthattheprogrammeronlyneedstowritethecodeforthemonce.Eachsubclasscanalteritsinheritedtraits.Forexample,theCollieclassmightspecifythatthedefaultfurColorforacollieisbrown-and-white.TheChihuahuasubclassmightspecifythatthebark()methodproducesahighpitchbydefault.Subclassescanalsoaddnewmembers.TheChihuahuasubclasscouldaddamethodcalledtremble().Soanindividualchihuahuainstancewoulduseahigh-pitchedbark()fromtheChihuahuasubclass,whichinturninheritedtheusualbark()fromDog.Thechihuahuaobjectwouldalsohavethetremble()method,butLassiewouldnot,becausesheisaCollie,notaChihuahua.Infact,inheritanceisan“a...isa”relationshipbetweenclasses,whileinstantiationisan“isa”relationshipbetweenanobjectandaclass:aCollieisaDog(“a...isa”),butLassieisaCollie(“isa”).Thus,theobjectnamedLassiehasthemethodsfrombothclassesCollieandDog.TextB:Object-OrientedProgramming01AbstractionAbstractionissimplifyingcomplexrealitybymodelingclassesappropriatetotheproblem,andworkingatthemostappropriatelevelofinheritanceforagivenaspectoftheproblem.Forexample,LassietheDogmaybetreatedasaDogmuchofthetime,aColliewhennecessarytoaccessCollie-specificattributesorbehaviors,andasanAnimal(perhapstheparentclassofDog)whencountingTimmy’spets.AbstractionisalsoachievedthroughComposition.Forexample,aclassCarwouldbemadeupofanEngine,Gearbox,Steeringobjects,andmanymorecomponents.TobuildtheCarclass,onedoesnotneedtoknowhowthedifferentcomponentsworkinternally,butonlyhowtointerfacewiththem,i.e.,sendmessagestothem,receivemessagesfromthem,andperhapsmakethedifferentobjectscomposingtheclassinteractwitheachother.EncapsulationEncapsulationconcealsthefunctionaldetailsofaclassfromobjectsthatsendmessagestoit.Forexample,theDogclasshasabark()method.Thecodeforthebark()methoddefinesexactlyhowabarkhappens(e.g.,byinhale()andthenexhale(),ataparticularpitchandvolume).TextB:Object-OrientedProgramming01Timmy,Lassie’sfriend,however,doesnotneedtoknowexactlyhowshebarks.Encapsulationisachievedbyspecifyingwhichclassesmayusethemembersofanobject.Theresultisthateachobjectexposestoanyclassacertaininterface—thosemembersaccessibletothatclass.Thereasonforencapsulationistopreventclientsofaninterfacefromdependingonthosepartsoftheimplementationthatarelikelytochangeinthefuture,therebyallowingthosechangestobemademoreeasily,thatis,withoutchangestoclients.Forexample,aninterfacecanensurethatpuppiescanonlybeaddedtoanobjectoftheclassDogbycodeinthatclass.Membersareoftenspecifiedaspublic,protectedorprivate,determiningwhethertheyareavailabletoallclasses,sub-classesoronlythedefiningclass.(Subtype)polymorphismPolymorphismallowstheprogrammertotreatderivedclassmembersjustliketheirparentclass’members.Moreprecisely,Polymorphisminobject-orientedprogrammingistheabilityofobjectsbelongingtodifferentdatatypestorespondtomethodcallsofmethodsofthesamename,eachoneaccordingtoanappropriatetype-specificbehavior.IfaDogiscommandedtospeak(),thismayelicitabark().However,ifaPig<code>iscommandedto<code>speak(),thismayelicitanoink().Theybothinheritspeak()fromAnimal,buttheirderivedclassmethodsoverridethemethodsoftheparentclass;thisisOverridingPolymorphism.TextB:Object-OrientedProgramming01DecouplingDecouplingallowsfortheseparationofobjectinteractionsfromclassesandinheritanceintodistinctlayersofabstraction.Acommonuseofdecouplingistopolymorphicallydecoupletheencapsulation,whichisthepracticeofusingreusablecodetopreventdiscretecodemodulesfrominteractingwitheachother.NewWords&Expressionsobject-orientedprogramming(OOP)01class02面向对象编程n.类12decouplingn.退耦;解耦;去耦;脱离object03instance04n.对象n.实例0607messagepassinginheritance消息传递n.继承0809abstractionencapsulation消息传递n.继承1011subtypepolymorphism消息传递n.继承05methodn.方法TextB:Object-OrientedProgramming01Ⅰ.Fillintheblankswiththerightwords.Exercisesabstraction class encapsulation inherit instance method messagemethods overriding polymorphism objectThe________Dogwouldconsistoftraitssharedbyalldogs,suchasbreedandfurcolor,andtheabilitytobarkandsit.The________Lassieisoneparticulardog,withparticularversionsofthecharacteristics.ADoghasfur;Lassiehasbrown-and-whitefur.Lassieobjectisan________ofDog.Lassie,beingaDog,hastheabilitytobark.Sobark()isoneofLassie’s________.TheobjectcalledBreedermaytelltheLassietositbypassinga“sit”________whichinvokesLassie’s“sit”________.SupposetheDogclassdefinesamethodcalledbark()andapropertycalledfurColor.Eachofitssub-classes(Collie,Chihuahua,andGoldenRetriever)will________thesemembers,meaningthattheprogrammeronlyneedstowritethecodeforthemonce.classobjectinstancemethodsmessagemethodinheritTextB:Object-OrientedProgramming01ExercisesLassietheDogmaybetreatedasaDogmuchofthetime,itiscalled________.Forexample,theDogclasshasabark()method.Thecodeforthebark()methoddefinesexactlyhowabarkhappens.Timmy,Lassie’sfriend,however,doesnotneedtoknowexactlyhowshebarks.________isachievedbyspecifyingwhichclassesmayusethemembersofanobject.IfaDogiscommandedtospeak(),thismayelicitabark().However,ifaPigiscommandedtospeak(),thismayelicitanoink().Theybothinheritspeak()fromAnimal,buttheirderivedclassmethodsoverridethemethodsoftheparentclass;thisis____________________.Ⅱ.Decidewhetherthefollowingstatementsaretrueorfalse.()1.Object-orientedprogrammingiscommonlyusedinmainstreamsoftwareapplicationdevelopmentsincetheearly1990s.()2.Theconceptsofobjectandinstancearethesame.()3.Aclassdefinestheabstractcharacteristicsofakindofthing,includingitspropertiesandmethods.()4.Instantiationisan“isa”relationshipbetweenclasses,whileinheritanceisan“a…isa”relationshipbetweenanobjectandaclass.()5.Topreventdiscretecodemodulesfrominteractingwitheachother,codeisforbiddentobereused.TFTTFabstractionEncapsulationoverridingpolymorphismTextC:PythonProgrammingLanguage01PythonIntroductionPythonisahighlevellanguage.Itisobject-oriented,interpreted,dynamic,multipurposelanguage.Althoughitisverysimpletolearnbutitisverypowerfulandversatilescriptinglanguage.Itsapproachtoobject-orientedprogrammingissimplebutveryeffective.Itisanideallanguageforscriptingandrapidapplicationdevelopmentinmanyareasonmanyplatforms,duetoitssyntaxanddynamictypingaswellasitsinterpretednature.Inthisarticlethebasicconceptsandfeaturesofpythonlanguageandsystemwillbeintroducedrespectively.PythonisnotmadetoworkonlywithaspecialareasuchasWebprogramming.ItcanbeusedwithWeb,enterprise,3DCAD/CAM,etc.ThereisalsoaremarkablebenefitofPythonwhichmustbementionedthatitdoesn’thavecompilationstepsoitisfasterthanothers.ItalsomakesdevelopmentanddebuggingfastinPython.TextC:PythonProgrammingLanguage01PythonCharacteristicsInterpreted:Pythoniscalledinterpretedbecauseitisprocessedatrun-timebytheinterpreterandthereisnoneedtocompiletheprogrambeforeexecutingit.PythonhasmuchsimilaritywithPERRLandPHP.Interactive:Itisknownasinteractivelanguagebecauseitfacilitateyoutodirectlyinteractwithinterpretertowriteprograms.Object-oriented:ItsupportsOOPsconceptandencapsulatecodeswithobjects,soitisknownasObject-oriented.Bestforbeginners:Itisveryeasytolearnandsupportsthedevelopmentofawiderangeofapplication,soitisalwaysrecommendedfornewbeginnersinprogramming.TextC:PythonProgrammingLanguage01HistorybehindPythonThatwere1980s,intheNationalResearchInstituteofmathematicsandcomputerscienceintheNetherlands,GuidovanRossumcreatedPython.ThislanguageisinfluencedbymanylanguageslikeABC,Modula-3,C,C++,Algol-68,Unixshellandmanyotherscriptinglanguages.Itwasdevelopedinlate1980sandimplementedin1989byGuidovanRossum.Sincethen,ithasbecomeverypopularamongdevelopersandprogramminglanguageanalystsduetoitscleansyntaxproductivity.ABCprogramminglanguageiscalledpredecessorofPythonlanguagewhichiswellknownforitsexceptionhandlingcapabilityandinterfacingwithAmoebaOperatingSystem.Note:ABCimpactedthemostinfluenceonPython.PythoniscopyrightedandmaintainedbyacoreteamundertheguidanceofGuidovanRossum.GuidovanRossum:CreatorofPythonTextC:PythonProgrammingLanguage01Whyisitsopopular?Itisoneofthemostpopularprogramminglanguagestoday.Atpresenttime,inUSA,itisthemostpopularlanguage,eightoutoftenCSdepartmentsand27oftop39teachPythoninintroductoryCScourse.Thereasonbehinditspopularitycanbedefinedas:Itisveryeasytolearn,soalwaysrecommendedforbeginners.Ithasveryfewkey_x0002_words,simplestructureandaclearsyntaxascomparisontootherlanguages.Itisveryeasytouseandunderstandthislanguage.Itscodesareclearlydefinedandvisibletousers.Python’ssourcecodeisveryeasytomaintainandthatisthereasonbehinditssuccess.Itisaportablelanguage.Itcanrunonmultipleplatformsandhasthesameinterfaceonallplatforms.Itprovidesinterfacestoallmajorcommercialdatabases.GuidovanRossum:CreatorofPythonTextC:PythonProgrammingLanguage01Ithasabroadstandardlibrary.Itisitsgreateststrengththatithasaportable,ross_x0002_platformlibrary.Itisamulti-paradigmprogramminglanguagewhichisthebestoneinallofothers,havingthesamequality.ApplicationswritteninPythonTherearesomanyapplicationswritteninPython.•3DCAD/CAM•Audio/Videoapplications•Consoleapplications•Enterprisesapplications•Imageapplications•Fileformats•Internetapplications•Mobileapplications•Officeapplications•ScienceandEducationalapplications•SoftwareDevelopment•SystemAdministrativeApplications脚本语言n.句法;语法网络编程n.[计]编译n.排除错误(程序的);排除故障(机器的)面向对象编程(Object-OrientedProgramming)TextC:PythonProgrammingLanguage01Python:Inthefuture:Ifyouseetheprogramminglanguageshistoryofrecentyears,yo
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 医院感染现患率调查方案
- 教学课件:第8章建筑物的耐火等级y课件
- 2021-2022学年-有答案-江苏省徐州市铜山区七年级(上)期中道德与法治试卷
- 发挥好矿长在煤矿安全生产中的重要作用考核试卷
- 电力设备的电磁兼容与抗干扰考核试卷
- 建筑物拆除工程施工现场消防考核试卷
- 电商平台广告投放与优化考核试卷
- 农业科学在农村旅游中的应用考核试卷
- 煤炭制品质量检验标准考核试卷
- 焙烤食品的新品推广与市场营销考核试卷
- 语文教学之学理
- 餐饮创业湘菜计划书
- 销售意识培训课件
- 幼儿园公开课:大班美术创意《橙子变变变 》课件
- 高效数据标注流程
- 2024年物流配送行业无人机配送方案
- 中小学音乐教育的跨学科融合
- Part3-4 Unit4 Volunteer Work课件-【中职专用】高一英语精研课堂(高教版2021·基础模块2)
- 人美版全国小学美术优质课一等奖《摆花样》课件
- JCT2460-2018 预制钢筋混凝土化粪池
- 电动汽车结构与原理课件:电动汽车的结构组成
评论
0/150
提交评论