Computer Programming for Kids and Other Beginners,4Ed.pdf

所需积分/C币:50 2013-07-11 02:06:24 29.94MB PDF
收藏 收藏 2
举报

看国外是如何培养青少年学习计算机编程技术的!本书绝对是一部Python初学者教程,由智普教育python培训专业机构jeapedu . com友情提供,书名:《Computer Programming for Kids and Other Beginners,4Ed.pdf》本书非常适合初学者!
智普教育 Python培训 jeapedu, com Hello world! Computer Programming for Kids and Other Beginners WAR尺 EN SANDE CARTER SANDE MANNING Greenwich 74°w.long) 智普教育 Python培训 jeapedu, com For online information and ordering of this and other manning books, please visit www.manning.com.Thepublisheroffersdiscountsonthisbookwhenorderedinquantity For more information, please contact Special Sales Department Manning publications co Sound View Court 3B fax: (609)877-8256 GreenwichCt06880emailorders@manning.com @2009 by manning Publications Co. All rights reserved No part of this publication may be reproduced, stored in a retrieval system or transmitted, in any form or by means electronic, mechanical, photocopying, or otherwise, without prior written permission of the publisher. Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in the book, and manning Publications was aware of a trademark claim, the designations have been printed in initial caps o Recognizing the importance of preserving what has been written, it is Mannings policy to have the books we publish printed on acid-free paper, and we exert our best efforts to that end Recognizing also our responsibility to conserve the resources of our planet, Manning books are printed on paper that is at least 15% recycled and processed without elemental chlorine Manning Publications Co Development editor: Cynthia Kane SoundⅤ iew Court3B Copyeditors: Andy Carroll, Anna Welles Greenwich, CT06830 Technical proofreader: Ignacio Beltran-Torres tter: marija tude Illustrator: Martin Murtonen Cover designer: Leslie haime Fourth, corrected printing August 2009 ISBN978-1-933988-49-8 Printed in the united states of america 45678910=MAL-15141312111009 智普教育 Python培训 jeapedu, com o our family, tho inspire, encourage, and support us in school work. and life 智普教育 Python培训 jeapedu, com 智普教育 Python培训 jeapedu, com Contents Preface xiii Acknowledgments xⅸx About this book xxi Getting Started 1 Installing Python 1. Starting Python with IDLE 2. Instructions, please 3- Interacting with Python 5. Time to program 7 Running your first program 8. If something goes wrong 9 Your second program 11 2 Remember This-Memory and Variables 14 Input, processing, output 14. Names 16. What's in a name? 20 Numbers and strings 21: How"variable"are they? 22. the new me 23 3 Basic Math 26 The four basic operations 27. Operators 28- Order of operations 29 a Two more operators 30- Really big and really small 33 智普教育 Python培训 jeapedu, com viii Contents 4 Types of Data 38 Changing types 38. Getting more information Type-conversion errors 42. Using type conversions 42 5 Input 44 45·The command and the comma 45 Inputting numbers 47. Input from the Web 49 6 GUls--Graphical User Interfaces 52 What's a gu!52· Our first gu|53· GUI input54 Pick your flavor 55. The number-guessing game . again 59 Other GUI pieces 60 7 Decisions, Decisions 62 Testing, testing 62.Indenting 65. Am I seeing double? 65 Other kinds of tests 66. What happens if the test is false? 67 Testing for more than one condition 69. Using"and"69 Using"or"70· Using"not”70 8 Loop the Loop 74 Counting loops 75. Using a counting loop 77. A shortcut 78. A matter of style--loop variable names 80 Counting by steps 82. Counting without numbers 84 While we re on the subject.. 84 Bailing out of a loop an d 85 9 Just for You--Comments 89 Adding comments 89. Single-line comments 90. End-of-line comments 90. Multiline comments 90 Commenting style 91 Commenting out 92 10 Game Time 94 Skⅰer94 11 Nested and Variable Loops 99 Nested loops 99. Variable loops 101. Variable nested loops 102 Even more variable nested loops 103. Using nested loops 105 智普教育 Python培训 jeapedu, com CoNTeNTS 12 Collecting Things Together-Lists 112 What's a list? 112, Creating a list 113. Adding things to a list 113. What's the dot? 114. Lists can hold anything 114 Getting items from a list 115,"Slicing"a list 116. Modifying items 118. Other ways of adding to a list 118. Deleting from a list 120. Searching a list 121. Looping through a list 122 Sorting lists 123. Mutable and immutable 126. Lists of lists: tables of data 126 13 Functions 131 Functions-the building blocks 131 calling a function 133 Passing arguments to a function 134. Functions with more than one argument 137- Functions that return a value 139 variable scope 140. Forcing a global 143. a bit of advice on naming variables 144 14 Objects 146 Objects in the real world 147. Objects in Python 147 Object= attributes + methods 148. What's the dot? 149 Creating objects 149. An example class-HotDog 154 Hiding the data 159. Polymorphism and inheritance 159 Thinking ahead 162 15 Modules 164 What's a module? 164: Why use modules? 164. Buckets of blocks 165. How do we create modules? 165. how do we use modules? 166. Namespaces 167. Standard modules 170 16 Graphics 174 Getting some help-Pygame 174. A Pygame window 175 Drawing in the window 178. Individual pixels 186 mages190· Let's get moving!192· Animation193 Smoother animation 194. Bouncing the ball 196 Wrapping the ball 198 17 Sprites and Collision Detection 202 Sprites 202. Bump! Collision detection 208 Counting time 212 智普教育 Python培训 jeapedu, com

...展开详情
试读 432P Computer Programming for Kids and Other Beginners,4Ed.pdf
立即下载 低至0.43元/次 身份认证VIP会员低至7折
    一个资源只可评论一次,评论内容不能少于5个字
    xxbgp 感觉不是第二版的书籍,第二版的书籍封面是红色的,出版时期是2009年
    2018-12-09
    回复
    kycsd 强烈推荐该书作为入门书籍
    2017-04-10
    回复
    elephantsun 适合孩子看,只是得会英文
    2016-03-21
    回复
    pppiiivvv 不错的治疗,英文简单可看,谢谢分析.
    2015-06-27
    回复
    qq_22144217 非常感谢分享!准备和孩子一起看。
    2015-04-17
    回复
    frankiehuang 还不错,但是还是有点枯燥,适合中学以上的。
    2014-07-10
    回复
    p266c366 版本不明而且有水印,不喜欢,但是多谢分享。
    2014-05-27
    回复
    关注 私信 TA的资源
    上传资源赚积分,得勋章
    最新推荐
    Computer Programming for Kids and Other Beginners,4Ed.pdf 50积分/C币 立即下载
    1/432
    Computer Programming for Kids and Other Beginners,4Ed.pdf第1页
    Computer Programming for Kids and Other Beginners,4Ed.pdf第2页
    Computer Programming for Kids and Other Beginners,4Ed.pdf第3页
    Computer Programming for Kids and Other Beginners,4Ed.pdf第4页
    Computer Programming for Kids and Other Beginners,4Ed.pdf第5页
    Computer Programming for Kids and Other Beginners,4Ed.pdf第6页
    Computer Programming for Kids and Other Beginners,4Ed.pdf第7页
    Computer Programming for Kids and Other Beginners,4Ed.pdf第8页
    Computer Programming for Kids and Other Beginners,4Ed.pdf第9页
    Computer Programming for Kids and Other Beginners,4Ed.pdf第10页
    Computer Programming for Kids and Other Beginners,4Ed.pdf第11页
    Computer Programming for Kids and Other Beginners,4Ed.pdf第12页
    Computer Programming for Kids and Other Beginners,4Ed.pdf第13页
    Computer Programming for Kids and Other Beginners,4Ed.pdf第14页
    Computer Programming for Kids and Other Beginners,4Ed.pdf第15页
    Computer Programming for Kids and Other Beginners,4Ed.pdf第16页
    Computer Programming for Kids and Other Beginners,4Ed.pdf第17页
    Computer Programming for Kids and Other Beginners,4Ed.pdf第18页
    Computer Programming for Kids and Other Beginners,4Ed.pdf第19页
    Computer Programming for Kids and Other Beginners,4Ed.pdf第20页

    试读已结束,剩余412页未读...

    50积分/C币 立即下载 >