Learn Python the Hard Way(高清.英文.书签.第三版).pdf

所需积分/C币:15 2018-04-14 22:32:51 2.66MB PDF

作者: Zed A. Shaw 出版社: Addison-Wesley Professional 副标题: A Very Simple Introduction to the Terrifyingly Beautiful World of Computers and Code 出版年: 2013-10-11 页数: 320 定价: USD 39.99 Learn Python The Hard Way 是你唯一的、最终的、史诗级的选择。它也许不能和 _why 的 why's (poignant) Guide to Ruby 重口味相提并论,但是作为不说废话、以练习为导向的教材,它是少林长拳一
Zed Shaws Hard Way Series i D5 HAH’5 H A R O WAY S E PIE PY HON l earn RUBy Learn e HARD WA the HARD WAY the HARD WAY A Clear B Direct Introduction Direct Z ED A HAW Z E D SH AW Z ED A SHAW ÷ Addison-Wesley Visit informit. com/hardway for a complete list of available publications z ed Shaw's Hard Way Series emphasizes instruction and making things as the best way to get started in many computer science topics. Each book in the series is designed around short, understandable exercises that take you through a course of instruction that creates working software. all exercises are thoroughly tested to verify they work with real students, thus increasing your chance of success. The accompanying video walks you through the code in each exercise Zed adds a bit of humor and inside jokes to make you laugh while you're learning m凹 Make sure to connect with us! informit. com/socialconnect informIT. com A Addison-Wesley Safari technology learning source EARNING PEARSON www.it-ebooks.info LEARN PYTHON THE HARD WAY A Very Simple Introduction to the Terrifyingly Beautiful World of computers and code Third edition Zed a shaw A Addison-Wesley Upper Saddle riⅳver,NJ· Boston· Indianapolis· San francisco New york· Toronto· Montreal|· London· Munich· Paris· Madrid Capetown· Sydney· Tokyo· Singapore· Mexico City www.it-ebooks.info Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book, and the publisher was aware of a trademark claim, the designations have been printed with initial capital letters or in all capitals The author and publisher have taken care in the preparation of this book, but make no expressed or implied warranty of any kind and assume no responsibility for errors or omissions. No liability is assumed for incidental or consequential damages in connection with or arising out of the use of the information or programs contained herein The publisher offers excellent discounts on this book when ordered in quantity for bulk purchases or special training goals, marketing focus, and branding interests. For more information, please contac. ur busine sales, which may include electronic versions and/or custom covers and content particular to you U.S. Corporate and Government sales (800)382-3419 corpsales@pearsontechgroup com For sales outside the United States, pl international@pearson.com Visit us on the Web informit. com/aw Library of Congress Cataloging-in-Publication dat Shaw. Zed Learn Python the hard way: a very simple introduction to the terrifyingly beautiful world of computers and code/ zed a shaw.-third edition pages cm Includes index ISBN 978-0-321-88491-6(paperback: alkaline paper) 1. Python( Computer program language)2. Python( Computer program language)Problems, exercises etc.3. Computer programming-Problems, exercises, etc. L. Title QA76.73P98532014 005.13'3-dc23 2013029738 Copyright o 2014 Zed A. Shaw All rights reserved. Printed in the United States of America. This publication is protected by copyright, and permission must be obtained from the publisher prior to any prohibited reproduction, storage in a retrieval system, or transmission in any form or by any means, electronic, mechanical, photocopying, recording, or likewise. To obtain permission to use material from this work, please submit a written request to Pearson Education, InC, Permissions Department, One Lake Street, Upper Saddle River, New Jersey 07458, or you may fax your request to(201)236-3290 SBN-13:978-0-321-88491-6 ISBN-10 0-321-88491-4 Text printed in the United States on recycled paper at RR Donnelley in Crawfordsville, Indiana First printing, September 2013 www.it-ebooksinfo Contents Preface Acknowledgments The hard Way ls easier Reading and Writing Attention to det Spotting Differences Do Not Copy A Note on practice and persistence A Warning for the smarties Exercise 0 The Setup Mac osx OSX: What You should See Windows Windows What You should s InUx What You should s Warnings for Beginners 10 Exercise 1 A Good First Program 12 What You should see 14 Study drills Common Student Questions ..16 Exercise 2 Comments and pound characters 18 What You should see Study drills 18 Common Student Questions Exercise3 Numbers and math .20 What You should see Study drills 21 Common Student Questions 22 www.it-ebooks.info CONTENTS Exercise 4 Variables and names What You should see 25 Study drills 25 Common Student Questions 25 Exercise 5 More Variables and Printing 28 What You should see 28 Study drills Common Student Questions ..,,29 Exercise 6 Strings and Text What You should s Study drills Common Student Questions Exercise 7 More Printing 32 What You should see 32 Study drills 32 Common Student Questions 33 Exercise 8 Printing, Printing .34 What You should See Study drills 34 Common Student Questions 34 Exercise 9 Printing, Printing, Printing .36 What You should see 36 Study drills ..,.36 Common Student Questions 37 Exercise 10 What Was That? .38 What You should See 39 Escape sequences 39 Study drills Common Student Questions 40 Exercise 11 Asking Questions What You should see 42 Study drills 43 Common Student Questions .,43 www.it-ebooksinfo CoNTENTs vi Exercise 12 Prompting People 44 What You should see 44 Study drills .,..,,,,,,,.,44 Common Student Questions 45 Exercise 13 Parameters, Unpacking, Variables ..46 Hold Up! Features Have Another Name What You should See 47 Study drills Common Student Questions Exercise 14 Prompting and Passing 50 What You should see 50 Study drills Common Student Questions 51 Exercise 15 Reading files 54 What You should s Study drills ..55 Common Student Questi 56 Exercise 16 Reading and writing files What You should see 59 Study drills 59 Common Student Questions 60 Exercise 17 More files 62 What You should see 63 Study drills 63 Common Student Questions 63 Exercise 18 Names, Variables, Code, Functions .66 What You should s 67 Study drills .68 Common Student Questions 68 Exercise 19 Functions and variables 70 What You should s Study drills 71 Common Student Questions w. it-ebooks info VIII CONTENTS Exercise 20 Functions and files ..74 What You should see 75 Study drills 75 Common Student Questions Exercise 21 Functions Can Return Something 78 What You should see 79 Study drills Common Student Questions Exercise 22 What do you know so far? What You Are learning Exercise 23 Read Some code Exercise 24 More practice 84 What You should see 85 Study drills 85 Common Student Questions 85 Exercise 25 Even more practice .86 What You should see 87 Study drills Common Student Questions Exercise 26 Congratulations take a test Common Student Questions rcise 27 Memorizing logic 92 The Truth Terms 92 The truth tables 93 Common Student Questions 94 Exercise 28 Boolean practice .96 What You should See Study drills Common Student Question Exercise 29 What If 100 What You should se 101 Common Student Questions 101 www.it-ebooksinfo CoNTENTS ix Exercise 30 Else and if 102 What You should see 103 Study drill .103 Common Student Questi 103 Exercise 31 Making decisions 104 What You should see 105 Study drills .105 Common Student Questions 105 Exercise 32 Loops and Lists 10 What You should see 107 Study drills 108 Common Student Questions .108 Exercise 33 While-Loops 110 What You should see Study drills 111 Common Student Questi 112 Exercise 34 Accessing Elements of Lists 114 Study drills 115 Exercise 35 Branches and functions 116 What You should See 17 Study drills ..118 Common Student Questions Exercise 36 Designing and Debugging ....120 Rules for if-Statements ....120 Rules for Loops .120 Tips for Debugging 121 Homework 121 Exercise 37 Symbol Review 122 Ke 122 Data Types String Escape Sequences 124 String formats .124 Operators 25 www.it-ebooks.info


关注 私信 TA的资源