Python.Playground.Geeky.Projects.for.the.Curious.Programmer

所需积分/C币:15 2015-12-03 13:56:45 11.84MB PDF
收藏 收藏
举报

Python is a powerful programming language that's easy to learn and fun to play with. But once you've gotten a handle on the basics, what do you do next? Python Playground is a collection of imaginative programming projects that will inspire you to use Python to make art and music, build simulations
PYTHON PLAYGROUND Geeky Project∧{。r the curi。uAPr。8『qMer by mahesh venkitachalam no starch press San francisco PYTHON PLAYGROUND, Copyright o 2016 by Mahesh Venkitachalam ll rights reserved. No part of this work may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying, recording, or by any information storage or retrieval system, without the prior written permission of the copyright owner and the publisher First printing 1918171615123456789 ISBN-10:1-59327-6044 ISBN-13:978-1-59327-604-1 Publisher: william pollock Production Editor: Serena Yang Cover Illustration: Josh Ellingson Interior Design: Octopod Studios Developmental Editor: William Pollock Technical Reviewers Nicholas Kramer and Raviprakash Jayaraman Copyeditor: Kim Wimpsett Compositor: Kathleen Miller Proofreader: Paula l. Fleming Figure 8-4 was created by Fred Hsu(March 2005)and has been reproduced under the Creative Commons Attribution-Share Alike 3.0 Unported license For information on distribution, translations, or bulk sales, please contact No Starch Press, Inc. directly No Starch Press Inc 245 8th Street. San Francisco. CA 94103 phone415.863.9900:info@nostarch.com www.nostarch.com Library of Congress Cataloging-in-Publication data Venkitachalam Mahesh Python playground geeky projects for the curious programmer by Mahesh Venkitachalam pages cm Includes index ISBN978-1-59327-604-1--ISBN1-59327-604-4 1. Python( Computer program language )2. Electronic apparatus and appliances--Automatic control 3. Arduino(Programmable controller)--Programming. 4. Raspberry Pi (Computer )--Programming Title QA76.73.P98.V462015 005.13'3--dc23 2014046103 No Starch Press and the no starch Press logo are registered trademarks of No Starch Press, Inc. Other product and company names mentioned herein may be the trademarks of their respective owners. Rather than use a trademark symbol with every occurrence of a trademarked name, we are using the names only in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the rk The information in this book is distributed on an"As Is" basis, without warranty. While every precaution has been taken in the preparation of this work, neither the author nor No Starch Press, Inc shall have any liability to any person or entity with respect to any loss or damage caused or alleged to be caused directly or indirectly by the information contained in it For my parents A.V. Venkitachalam and N. Saraswathy for giving me the greatest gift of all- an education For hema H=MA BRIEF CONTENTS Acknowledgments Introduction XIX PART I: WARMING UP Chapter 1: Parsing iTunes Playlists Chapter 2: Spirograph 17 PART I: SIMULATING LIFE 39 Chapter 3: Conway's Game of Life 41 Chapter 4: Generating Musical Overtones with the Karplus-Strong algorithm....... 55 Chapter 5: Boids: Simulating a Flock 71 PART III: FUN WITH IMAGES 87 Chapter 6: ASCll Art 89 Chapter 7: Photomosaics 101 Chapter 8: Autostereograms ..117 PARTⅣV: ENTER3D 131 Chapter 9: Understanding OpenGL ..133 Chapter 10: Particle Systems 159 Chapter 11: Volume Rendering 191 PART V: HARDWARE HACKING 233 Chapter 12: Introduction to the arduino 235 Chapter 13: Laser Audio Di ....249 Chapter 14: A Raspberry Pi-Based Weather Monitor .273 Appendix A: Software Installation ....297 Appendix B: Basic Practical Electronics .303 Appendix C: Raspberry Pi Tips and Tricks 311 .319 CONTENTS IN DETAIL ACKNOWLEDGMENTS XV INTRODUCTION Who ls this book fore What's in this book? Part 1: Warming Up XX Part II: Simulating Life ,,,,.,XX Part I: Fun with Images XX PartⅣV: Enter3D XX Part V: Hardware Hacking Why Python? Python Versions The Code in this book ParT WARMiNG UP PARSING ITUNES PLAYLISTS anatomy of the itunes playlist File 4 Requirements e code Finding duplicates 6 Extracting Duplicates Finding tracks Common Across multiple playlists 7 Collecting Statistics Plotting your data Command Line Options The Complete Code.… e program 14 Summary 15 Experiments SPIROGRAPHS 17 Parametric equations Spirograph Equations 19 Turtle Graphics 22 Requirements 23 The code The Spiro Constructor 23 Th Setup Function ..24 e restar ()M etnea 24

...展开详情
试读 127P Python.Playground.Geeky.Projects.for.the.Curious.Programmer
立即下载 低至0.43元/次 身份认证VIP会员低至7折
    一个资源只可评论一次,评论内容不能少于5个字
    gouxu_lei 清晰完全版,很赞
    2018-02-18
    回复
    andysyz 本书写的很有意思
    2017-10-07
    回复
    m0_37526041 清晰完全版,很赞
    2017-02-15
    回复
    btchenh 清晰完全版,很赞
    2016-04-06
    回复
    bjty_kdjfk 文字清晰。谢谢分享
    2016-02-23
    回复
    retry 到处找不到. 最终在 CSDN 找到电子版. csdn rocks!
    2016-02-20
    回复
    img
    ramissue

    关注 私信 TA的资源

    上传资源赚积分,得勋章
    最新推荐
    Python.Playground.Geeky.Projects.for.the.Curious.Programmer 15积分/C币 立即下载
    1/127
    Python.Playground.Geeky.Projects.for.the.Curious.Programmer第1页
    Python.Playground.Geeky.Projects.for.the.Curious.Programmer第2页
    Python.Playground.Geeky.Projects.for.the.Curious.Programmer第3页
    Python.Playground.Geeky.Projects.for.the.Curious.Programmer第4页
    Python.Playground.Geeky.Projects.for.the.Curious.Programmer第5页
    Python.Playground.Geeky.Projects.for.the.Curious.Programmer第6页
    Python.Playground.Geeky.Projects.for.the.Curious.Programmer第7页
    Python.Playground.Geeky.Projects.for.the.Curious.Programmer第8页
    Python.Playground.Geeky.Projects.for.the.Curious.Programmer第9页
    Python.Playground.Geeky.Projects.for.the.Curious.Programmer第10页
    Python.Playground.Geeky.Projects.for.the.Curious.Programmer第11页
    Python.Playground.Geeky.Projects.for.the.Curious.Programmer第12页
    Python.Playground.Geeky.Projects.for.the.Curious.Programmer第13页
    Python.Playground.Geeky.Projects.for.the.Curious.Programmer第14页
    Python.Playground.Geeky.Projects.for.the.Curious.Programmer第15页
    Python.Playground.Geeky.Projects.for.the.Curious.Programmer第16页
    Python.Playground.Geeky.Projects.for.the.Curious.Programmer第17页
    Python.Playground.Geeky.Projects.for.the.Curious.Programmer第18页
    Python.Playground.Geeky.Projects.for.the.Curious.Programmer第19页
    Python.Playground.Geeky.Projects.for.the.Curious.Programmer第20页

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

    15积分/C币 立即下载 >