Learn Python 3 the Hard Way
Tags
Summary
Editor's review
Who it's for
A good fit for
- 完全没有编程经验、想靠动手练习入门 Python 的初学者
- 上过网课却总停留在“看得懂写不出”阶段的编程学习者
- 希望通过命令行与文本编辑器打牢基本功的自学者
- 把本书当作教学讲义、给零基础学生布置练习的培训讲师
Not a good fit for
- 已有多年 Python 经验、想深入研究语言进阶特性的开发者
- 希望直接学习数据分析、爬虫或机器学习等应用方向的人
- 偏爱系统性理论讲解、不适应习题驱动式学习的读者
Reading tips
- 严格按顺序逐题完成,不要跳读,也不要用复制粘贴替代手敲代码
- 每题的“巩固练习”和“破坏程序”务必做完,故意改坏再修好比一次跑通更有收获
- 在命令行中操作并留心每一条报错信息,把报错当作线索而非障碍
- 发现 Python 3.6 之后版本的行为差异时,先查官方文档,再决定是否调整示例
About the publisher
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
- Exercise 0: Preparation (macOS, Windows, Linux, Searching Online, Advice for Beginners, Optional Text Editors)
- Exercise 1: A Good First Program
- Exercise 2: Comments and Pound Characters
- Exercise 3: Numbers and Math
- Exercise 4: Variables and Names
- Exercise 5: More Variables and Printing
- Exercise 6: Strings and Text
- Exercise 7: More Printing
- Exercise 8: Printing, Printing
- Exercise 9: Printing, Printing, Printing
- Exercise 10: What Was That? (Escape Sequences)
- Exercise 11: Asking Questions
- Exercise 12: Prompting People
- Exercise 13: Parameters, Unpacking, Variables
- Exercise 14: Prompting and Passing
- Exercise 15: Reading Files
- Exercise 16: Reading and Writing Files
- Exercise 17: More Files
- Exercise 18: Names, Variables, Code, Functions
- Exercise 19: Functions and Variables
- Exercise 20: Functions and Files
- Exercise 21: Functions Can Return Something
- Exercise 22: What You Have Learned So Far
- Exercise 23: Strings, Byte Strings, and Character Encoding
- Exercise 24: More Practice
- Exercise 25: Even More Practice
- Exercise 26: Congratulations, Take a Test!
- Exercise 27: Memorizing Logic
- Exercise 28: Boolean Expression Practice
- Exercise 29: What If
- Exercise 30: Else and If
- Exercise 31: Making Decisions
- Exercise 32: Loops and Lists
- Exercise 33: While Loops
- Exercise 34: Accessing Elements of Lists
- Exercise 35: Branches and Functions
- Exercise 36: Designing and Debugging
- Exercise 37: Reviewing Various Symbols
- Exercise 38: Doing Things to Lists
- Exercise 39: Dictionaries, Oh Lovely Dictionaries
FAQ
这本书适合完全没有编程基础的人吗?
为什么书中要求不用 PyCharm 等集成开发环境?
这本书用的是 Python 2 还是 Python 3?
“禁止复制粘贴”真的有必要吗?
读完这本还要再看别的 Python 书吗?
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.