資源描述:
《Practical Programming (in Python)》由會員上傳分享,免費在線閱讀,更多相關(guān)內(nèi)容在學(xué)術(shù)論文-天天文庫。
1、COMP150:PracticalProgramming(inPython)JeffreyElknerAllenB.DowneyChrisMeyersBrendanMcCaneIainHewsonNickMeekFebruary19,2013iiContentsLicensexiForewordxiiiPrefacexvContributorListxixCourseInformationxxiii1Thewayoftheprogram11.1ThePythonprogramminglanguage...............
2、..................11.2Whatisaprogram?...........................................31.3Whatisdebugging?...........................................41.4Experimentaldebugging........................................41.5Formalandnaturallanguages..............................
3、.......51.6The?rstprogram............................................61.7Glossary.................................................61.8TheCOMP150lab............................................71.8.1Logging-on...........................................81.8.2TheOSXdeskt
4、op........................................81.8.3Menus..............................................81.8.4Thedock.............................................91.8.5TheFinderwindow......................................101.8.6Yourhomedirectory...........................
5、...........101.8.7Applications...........................................101.8.8IDLE...............................................111.8.9Gettinghelp...........................................111.8.10Coursework?les........................................121.8.11Terms
6、requirements......................................121.9Blackboard................................................12iii1.10Laboratoryexercises..........................................132Variables,expressionsandstatements172.1Valuesandtypes............................
7、................172.2Variables.................................................182.3Variablenamesandkeywords.....................................192.4Statements................................................202.5Evaluatingexpressions.................................
8、........202.6Operatorsandoperands........................................212.7Themodulusoperator...................................