欢迎来到天天文库
浏览记录
ID:30336219
大小:209.18 KB
页数:46页
时间:2018-12-29
《oxford handbook python.bak》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、HandbookofthePhysicsComputingCourse(Pythonlanguage)2002-2003UniversityofOxfordSub-facultyofPhysicsMJW/CRW/AOHCONTENTS1Introduction11.1TheComputingCourseandLaboratory.................................11.2ThePythoncourse............................................11.3The
2、markingsystemanduseofyourlogbook..............................21.4Hilaryterm................................................21.5Python..................................................21.6Typographicalconventions........................................32Learningtouset
3、hesystem52.1Logginginandgettingstarted......................................52.2TerminalandtheUnixcommand-line..................................52.3IntroductiontoIDLEandtheinterpreter.................................62.4IntroductiontoPython............................
4、..............62.5Theeditor.................................................72.6Modulesandamoreinterestingprogram................................72.7Loggingout...............................................83TheelementsofPython93.1Variables............................
5、.....................93.1.1Namesandassignment.....................................93.1.2Types..............................................103.1.3Casesensitivity.........................................113.2Inputandoutput.............................................12
6、3.3Arithmetic................................................133.4forloops.................................................143.4.1Anexampleofaforloop....................................143.4.2Usingtherangefunction....................................153.5ifstatements..
7、.............................................163.5.1Anexampleofanifstatement.................................163.5.2ComparisontestsandBooleans.................................163.5.3elseandelifstatements.....................................173.6whileloops.............
8、...................................183.7Formattedoutput.............................................203.8Usinglibraryfunctio
此文档下载收益归作者所有