深入浅出程序设计(中文版)

Paul Barry, David Griffiths

出版时间

2012-03-01

ISBN

9787564129668

评分

★★★★★
书籍介绍
这本书最打动人的,是它把「编程思维」从具体语言里抽了出来。读者反复提到:学完会发现变量、判断、循环、函数、对象这些概念跨语言相通,掌握了它们,再学其他语言就触类旁通——这才是它真正的价值所在。它不满足于教你Python语法,而是让你理解程序「到底在做什么」:代码如何被解释器翻译成计算机能懂的0和1,缩进如何决定程序的执行路径,条件分支怎样让程序像开车岔路口一样做出选择。这种「知其所以然」的通透感,是刷语法教程给不了的。它适合想建立完整底层认知、又不愿被密密麻麻文字劝退的入门者;如果你已经撸过一门语言,读起来会更轻松。代价是后期略有划水,需主动动手练习,否则容易「只看一遍」就放过自己。
AI导读
核心看点
  • 以Python为例讲解变量、循环等核心概念
  • 采用Head First多感官设计,拒绝枯燥文字
  • 通过具体示例和练习巩固编程基础思维
读者共识
  • 被公认为最照顾初学者体验的编程入门书
  • 风格活泼有趣,能极大降低学习挫败感
  • 适合建立编程直觉,有基础者可能觉得浅
精彩摘录
  • "print('Welcome!') g = input('Guess the number: ') guess = int(g) if guess == 5: print('You win!') else: print('You lose!') print('Game over!')"
  • "The editor saves the code you write into a file on your hard disk.The code(sometimes called the source code) is just text, and it can be written and read by humans.But computers can't process text meant for humans, at least not very well.That's why we need a tool to translate the human-friendly sour"
  • "Fortunately,Python3 comes with a built-in application called IDLE,which does both jobs and more.IDLE enables you to write and edit Python code,it translates this code into binary form, and finally, it runs the Python3 program.Because of this,IDLE is known as an Integrated Development Environment."
  • "A path refers to the set of instructions that the computer will actually follow(or excute). Your code is like a street network, with lots of sections of code connected together just like the streets in a city.When you drive through a city, you make decisions as to which streets you drive down by tur"
  • "Your program makes a decision using a branch condition.A branch condition has the value true or false.If the branch condition is true,it runs the code on the branch.And if the branch condition is false,it runs the code on the false branch."
  • "Python uses indents to connect a sequence of commands together to form paths.So how you connect branches together?You simply indent the second branch in by one more level.(Intends matter in python.Be careful how you indent code in Python;if you don't indent your code correctly,your code might do som"
  • "Loops are a little like branches.Just like branches, loops have a condition(the loop condition)that is either true or false.Also,like the if part of branches,if the loop condition is true, then a loop will run a given piece of code.For a branch,this code is called the body.For a loop,it's called the"
  • "from random import randint secret=randint(1,10) print('Welcome!') guess=0 while guess!=secret: g=input('Guess the number:') guess=int(g) if guess==secret: print('You win!') else: if guess >secret: print('Too high!') else: print('Too low!') print('Game over!')"
用户评论
真的用心了,这本书非常关注读者体验,像一名贴心的指导者一样带着学习概念,知识和技巧,有互动环节和形象化的解释。不是简单地把知识罗列出来,而是像返璞归真的高手一样把知识形象地串了起来。
各门编程语言其实是想通的,包括statement, loop, function,加上库、面向对象之类,学会一门也就掌握了其他门。
比html css 翻译确实差了点
翻译质量很差,不建议买
入门基础,非常易懂,第一次接触编程的哪怕学其他语言的同学,可以先看看这本书,书里有大量图片辅助理解,最重要的是看这本书不需要有任何其他方面的基础。
还可以,适合入门
认知折叠,python好酷,而我现在工作用的C语音好土啊……
又名: 《当你学了Python后如何在十分钟看完这本书》 《为什么我在痛苦的编程入门时没有遇到她》 《并不Pythonic的Python''教程''》 《嗨,我是正经图片集》
下载
收藏