欢迎来到天天文库
浏览记录
ID:34303622
大小:1.94 MB
页数:414页
时间:2019-03-04
《Python_Programming_An Introduction_to_Computer_Science(2nd Edition).pdf》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、PythonProgramming:AnIntroductiontoComputerScienceJohnM.Zelle,Ph.D.PreliminarySecondEditionFall2009Copyright©2009JohnMZelle.Allrightsreserved.Nopartofthispublicationmaybereproduced,storedinaretrievalsystem,ortransmitted,inanyformorbyanymeans,electronic,mechan
2、ical,photocopying,recording,orotherwise,withoutpriorwrittenpermission.ThisdocumentwastypesetbytheauthorwithLATEX2ǫ.Contents1ComputersandPrograms11.1TheUniversalMachine...................................11.2ProgramPower.......................................2
3、1.3WhatisComputerScience?................................31.4HardwareBasics......................................41.5ProgrammingLanguages..................................51.6TheMagicofPython....................................71.7InsideaPythonProgram.......
4、...........................121.8ChaosandComputers...................................141.9ChapterSummary.....................................161.10Exercises...........................................172WritingSimplePrograms212.1TheSoftwareDevelopmentProcess..
5、..........................212.2ExampleProgram:TemperatureConverter........................222.3ElementsofPrograms...................................242.3.1Names........................................242.3.2Expressions.....................................252
6、.4OutputStatements.....................................272.5AssignmentStatements...................................282.5.1SimpleAssignment.................................282.5.2AssigningInput...................................302.5.3SimultaneousAssignment..
7、...........................322.6DefiniteLoops........................................342.7ExampleProgram:FutureValue..............................372.8ChapterSummary.....................................392.9Exercises...........................................
8、403ComputingwithNumbers453.1NumericDataTypes....................................453.2UsingtheMathLibrary...................................493.3AccumulatingResults:Factorial.....................
此文档下载收益归作者所有