Learn Python 3 the Hard Way cover

Learn Python 3 the Hard Way

Rating 3.9
Chapters
1
ISBN
9787115478818

Tags

Summary

Learn Python 3 the Hard Way is the Chinese edition of American programmer Zed A. Shaw's widely followed Python primer Learn Python 3 the Hard Way, translated by Wang Weiwei and published by Posts & Telecom Press in June 2018, based on Python 3.6. The book's structure is minimal: apart from "The Setup," there are 52 exercises. The first 26 cover the three foundational themes of input and output, variables, and functions; the last 26 move into conditionals, loops, classes and objects, code testing, and complete project implementation. Each exercise follows a highly consistent format: first the code and precise typing instructions, then how to run it and check the output, and finally additional exercises and a list of frequently asked questions. The book's most distinctive feature is its "hard way" teaching method: readers must work through every exercise from beginning to end, typing every program by hand word for word (no copying and pasting), and actually get the program running. The author deliberately has readers work in the command line and a plain text editor rather than an IDE, so they understand how the computer and interpreter basically operate. The language is blunt, with a touch of caustic humor, encouraging readers to deliberately break their code, read error messages, and fix it themselves, thereby cultivating the habit of "reading code, writing code, observing results, and spotting differences." Note that the book does not aim for comprehensive coverage or for explaining principles thoroughly; it is more like a designed exercise routine: for absolute beginners, following along quickly builds feel and confidence; for those with some background, it can serve as a rapid checklist for filling gaps. The Chinese edition also includes instructional videos narrated by the author, to be used alongside the exercises.

Editor's review

市面上大多数 Python 入门书都在“讲”,这本却在“逼你动手”。泽德·A·肖把学习设计成52个必须完成的习题:手打代码、运行、对结果、改错、做附加练习,一步都不能跳。这种看似笨拙的方式,恰恰治好了初学者最常见的病——看得懂、写不出。 它的三个优点很突出。第一,路径极清晰,不需要自己规划学什么,翻开做就行;第二,把命令行、文本编辑器、报错信息这些被很多入门书跳过的“脏活”放在最前面,让你早点习惯真实开发环境;第三,作者刻意让你把代码改坏、看错误、再修好,训练的是调试直觉而不是背诵语法。 也要坦白说:本书对 Python 3.6 之后的新特性覆盖有限,理论讲解偏薄,风格直接甚至有点“凶”,不喜欢被指令式口吻指挥的读者会觉得难受。它适合当“第一本动手书”,但不宜当唯一的 Python 书——做完之后最好再配一本系统教材或官方文档,把原理补齐。对于完全零基础、又容易中途放弃的人来说,这种强约束的练习流程反而比自由探索更有效。

Who it's for

A good fit for

  • 没有任何编程经验、希望靠动手练出感觉的零基础读者
  • 看过教程却写不出代码、需要强制练习流程的自学者
  • 想快速熟悉命令行、文件读写与调试等真实开发习惯的人
  • 准备系统学习 Python 前,想先做一轮热身练习的学生

Not a good fit for

  • 已有一定 Python 基础、想要系统深入原理或进阶框架的读者
  • 偏好先理解理论再动手、不喜欢指令式口吻的学习者
  • 希望专门学习数据分析、Web 开发等领域应用的读者

Reading tips

  1. 严格按顺序完成习题,自己手敲代码、不复制粘贴,跑通后再做附加练习
  2. 每章故意改坏一行代码并阅读报错,把调试当成正式练习的一部分
  3. 遇到卡壳先记录现象再查资料,避免一上来就看答案;完成后回看错题笔记
  4. 全书做完后,再搭配系统教材或官方文档补足 Python 3 新特性与原理

About the publisher

Posts & Telecom Press China · Founded in 1953

Posts & Telecom Press is known for its strengths in science and technology, computing, and information and communications titles, and has extended its publishing into photography, art, software learning, and inspirational growth, giving it a fairly diverse range. Its catalog includes computing and communications works such as Refactoring and Patterns (Revised Edition) and Huawei Switch Learning Guide (Second Edition), alongside bilingual collector's editions such as The Little Prince (Chinese-English-French illustrated collector's edition), The Great Gatsby, and Three Days to See. Beijing Ten Years: 1980-1990 and Ghost Blade: WLOP Personal Illustration Collection reflect its presence in photography and art. Its authors include Antoine de Saint-Exupéry, Helen Keller, Joshua Kerievsky, Wang Da, Zhang Zhaozeng, and WLOP.

Contents

  1. Learn Python 3 the Hard Way

FAQ

这本书对应原书第几版?
中文版《笨办法学Python 3》对应原书 Learn Python 3 the Hard Way,是“Learn Python the Hard Way”系列专注 Python 3 的版本,2018年6月由人民邮电出版社出版,ISBN 9787115478818。
书里的代码能在新版 Python 上跑吗?
本书基于 Python 3.6 编写,绝大多数基础示例在更新的 Python 3 版本上仍可运行;但个别语法或第三方工具(如书中推荐的编辑器)可能已有变化,遇到报错时对照官方文档调整即可。
必须用命令行,不能用 PyCharm 吗?
作者坚持让读者在命令行和纯文本编辑器中学习,是为了让你理解解释器、路径和文件的实际运作。你可以用任何编辑器,但建议前几十个习题至少先用命令行跑通。
零基础直接读会不会太难?
不会。它假定你没有编程经验,从打印“Hello World”开始循序渐进。难点更多在于需要耐心手打代码并忍受反复出错,而不是概念本身太难。
和《笨办法学Python》第3版有什么区别?
第3版(2014年,ISBN 9787115350541,豆瓣约7.7分)基于 Python 2 时代的内容;《笨办法学Python 3》改用 Python 3.6 重写,更适合现在的读者。

Comments

Find this book

This site is an index: you start “Search all sources” in your browser, and the entries it lists all point to third-party sites; please judge their availability yourself.

More by the same author

Top rated in the same category