作者:
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 装帧: Paperback ISBN: 9780321884916
Master Python and become a programmer-even if you never thought you could! This breakthrough book and CD can help practically anyone get started in programming. It's called "The Hard Way," but it's really quite simple. What's "hard" is this: it requires discipline, practice, and persistence. Zed A. Shaw teaches the Python programming language through a series of 52 brilliantly-...
Master Python and become a programmer-even if you never thought you could! This breakthrough book and CD can help practically anyone get started in programming. It's called "The Hard Way," but it's really quite simple. What's "hard" is this: it requires discipline, practice, and persistence. Zed A. Shaw teaches the Python programming language through a series of 52 brilliantly-crafted exercises-all formatted consistently, and most no longer than two pages (including "extra credit"). Just read each exercise, type in its sample code precisely (no copy-and-paste!), and make the programs run. As you read, type, fix your mistakes, and watch the results, you'll learn how software works, how programming works, what good programs look like, and how to read, write, and see code. You'll discover how to spot crucial differences that fundamentally affect program behavior, and you'll learn everything you need to know about Python logic, input/output, variables, and functions. Above all, you'll learn the attention to detail that is indispensable to successful programming (and so much else in life). At first, yes, it can be difficult. But it gets easier. And Shaw offers plenty of extra guidance and insight through 5+ full hours of teaching video on the accompanying CD. As Shaw's thousands of online readers and fans will attest, the moment will come when you just "get it"-and that moment feels great. Nothing important comes without discipline, practice, and persistence. But, with Learn Python the Hard Way, readers who bring those qualities to programming will master it-and they will reap the rewards, both personally and in their careers.
作者简介
· · · · · ·
Zed A. Shaw is the author of the popular online books Learn Python the Hard Way, Learn Ruby the Hard Way, and Learn C the Hard Way. He is also the creator of several open source software projects like Mongrel, Lamson, Mongrel2, and has been programming and writing for nearly 20 years.
Rules For If-Statements
1.Every if-statement must have an else.
2.If this else should never be run because it doesn't make sense, then you must use a die function in the else that prints out an error message and dies, just like we did in the last exercise. This will find many errors.
3.Never nest if-statements more than 2 deep and always try to do them 1 deep. This means if you put an if in an if then you should be looking to move that second if into another function.
4.Treat if-statements like paragraphs, where each if,elif,else grouping is like a set of sentences. Put blank lines before and after.
5.Your boolean tests should be simple. If they are complex, move their calculations to variables earlier in your function and use a good name for the variable.
Rules For Loops
1.Use a while-loo... (查看原文)
Learn python the hard way 笨办法学python学习笔记 整理如下,希望能帮助到有需要的人。 LPTHW习题0,1,2学习笔记 http://www.douban.com/note/264363523/ LPTHW习题3,4,5学习笔记 http://www.douban.com/note/264558854/ LPTHW习题6,7,8学习笔记 http://www.douban.com/n...
(展开)
趁着放假,这两天接连看完了Land of Lisp 和这本 Learn Python The Hard Way ,算是完成了 Common Lisp 和 Python 的入门。记得上个暑假断断续续看了三个月都没看完的 Practical Common Lisp 和 十一假期只看了前几章、到现在仍不明白的 Real World Haskell ,真的不敢相信...
(展开)
0 有用 蝉 2013-12-09 10:58:00
:无
17 有用 YannieY 2015-04-03 11:07:00
今晚在地铁上的时候一个男生跟我搭讪,原因是因为看到我在读这本书所以想问我这本书怎样。。。我觉得从今以后我每天上班都读O'Reilly's的书
1 有用 msasa 2015-07-10 17:39:55
帮的 希望研究生期间能把N2C2python搞定。。。我就是想想。。
0 有用 子珂 2015-05-19 21:30:14
看的视频,感觉太无聊了(大多数都比较容易)...而且对于Scientic Python的屎性于事无补
0 有用 sunliwen 2013-11-06 17:35:27
借新书复习一下Python,其实挺Easy的