预览加载中,请您耐心等待几秒...
1/10
2/10
3/10
4/10
5/10
6/10
7/10
8/10
9/10
10/10

在线预览结束,喜欢就下载吧,查找使用更方便

如果您无法下载资料,请参考说明:

1、部分资料下载需要金币,请确保您的账户上有足够的金币

2、已购买过的文档,再次下载不重复扣费

3、资料包下载后请先用软件解压,在使用对应软件打开

完整版)python教案Unit5AdvancedProgramming(totalof10classhours)Lesson1ChoosingaProgrammingLanguage(1classhour)I。TeachingObjectives1.UnderstandprogramminglanguagesandtwoXXX;2.UnderstandPythonbackground。ns。n。andfamiliarizewithPythonprogrammingenvironment;3.Experiencethewholeprocessofbuilding。inputting。debugging。running。andsavingasmallprogram。MasterthecalloftheTurtlemoduleandtrytomodifytheXXX.XXXDifficultiesTeachingfocus:FamiliarizewithPythonprogrammingenvironment。ExperienceprogrammingforthefirsttimeTeachingdifficulties:Experienceprogrammingforthefirsttime。Writingnsforprogramsandusingdebuggingwindows.III。TeachingProcessI。ntoPythonLanguage1.PythonLanguagePythonmeans"python"inEnglish。andthelogoofthislanguageistwoXXX.Pythonlanguageiswidelyused。Forexample。itcanbeusedingamedevelopment。Pythonlanguageisalsousedin3Drenderinginmovies。Pythonlanguageiseverywhereinthe。websitessuchasGoogle。Douban。andZhihuareallbuiltusingPythonlanguage.PythonlanguagewaswrittenbythefamousGuidovanRossumduringChristmasin1989topassthetime。GuidovanRossumhasbeenworkingatGooglesince2005.andwiththestrongsupportofGoogleandtheprogrammingcommunity。Pythonhasalsousheredingreatdevelopment.2.StartingPython3.PythonDevelopmentEnvironmentII。FirstExperienceinProgramming-MyFirstPythonProgramCodeforchengxu1.py:importturtle#Calltheturtlemodulea1=turtle.Turtle()#Displayaturtleinthewindowandnameit"a1"Regardingwritingtheprogram:1.Pythonlanguageiscase-sensitive。forexample。theTinTurtle()needstobecapitalized;2.LettersandsymbolsinPythonlanguagecanonlybehalf-widthEnglishsymbols.XXX1.Addthestatementa1.shape("")totheendofthechengxu1.pyprogram:Tip:Pleaseenterthefollowingdifferentcontentin""eachtime:square。circle。arrow。turtle。Then。saveandruntheprogramtoobservetheresultseachtime.Talkaboutthenofshape().Statementshape("turtle")shape("arrow")shape("circle")shape("XXX")Displayresult2.Addthestatementa1.color("")totheendofthechengxu1.pyprogram:1."Iam5yearsold."isprintedusingthecode"print("Iam"+str(5)+"yearsold.")"2.Thedatatypeof"Marry"isastring。