Learn Programming Starting with Python
Tags
Summary
Editor's review
Who it's for
A good fit for
- 零基础或只会一点代码、想系统理解“编程到底是什么”的初学者
- 学过其他语言,想借 Python 理解面向对象与函数式编程的转行人
- 喜欢通过比喻和背景故事理解概念、不喜欢枯燥手册的读者
- 需要为自学班、社团或入门课挑一本“讲思路”教材的组织者
Not a good fit for
- 已具备中高级 Python 经验、只想查框架与工程实践的开发者
- 希望直接用 Flask、Django、数据分析等完整项目练手的读者
- 需要严格对齐最新 Python 3.12+ 语法与库版本的读者
Reading tips
- 边读边在本地敲代码,每章的“代码规范”与“小练习”附录不要跳过,动手比看懂更重要。
- 把第 3、4、7 章当成一条主线连着读,比较同一功能用过程式、对象式、函数式写法的差别。
- 遇到示例报错先别怀疑自己,很多写法来自 Python 3 早期版本,可对照当前官方文档修正后继续。
- 第一遍通读建立框架,第二遍按章做笔记,把“为什么这样设计”的问题单独记下来,回过头逐个解决。
About the publisher
The Publishing House of Electronics Industry is a comprehensive publisher distinguished by its focus on electronic information and related fields. Judging from the more than 3,000 titles in its catalogue, its publishing covers programming and design, artificial intelligence, computer science, finance and economics, photography, and social sciences, attending both to cutting-edge technology and to general readers. Representative titles include Factor Investing: Methods and Practice, x86 Assembly Language: From Real Mode to Protected Mode, The RISC-V Reader, Artificial Intelligence: Speech Recognition, Understanding and Practice, Phased Array Radar Technology, Radar Target Characteristics, and 100 Go Mistakes and How to Avoid Them, most of which centre on technical methods and engineering practice. Its authors include Shi Chuan, Li Zhong, Wang Xiaobo, David Patterson, Andrew Waterman, and Yu Zihao, among others from China and abroad. Owing to limited public information, no further publishing features are elaborated here.
Contents
- Chapter 1 Remaking the World with Programming
- 1.1 From Computers to Programming
- 1.2 What Programming Actually Does
- 1.3 Why Learn Python
- 1.4 The Simplest Hello World
- Appendix A Installing and Running Python
- Appendix B virtualenv
- Chapter 2 First, Be a Keyboard Warrior
- 2.1 Computers Can Do Arithmetic
- 2.2 Computers Have Good Memory
- 2.3 Computers Understand Choices
- 2.4 Computers Can Loop
- Appendix A Small Exercises
- Appendix B Code Style
- Chapter 3 Process Over Result
- 3.1 The Lazy Cook Machine
- 3.2 Parameter Passing
- 3.3 Recursion
- 3.4 Summoning That Sword
- 3.5 Exception Handling
- Appendix A Setting the Search Path
- Appendix B Installing Third-Party Modules
- Appendix C Code Style
- Chapter 4 Objects on Your Mind
- 4.1 Objects Made Easy
- 4.2 The Inheritors
- 4.3 Objects We Missed Back Then
- 4.4 Unexpected Objects
- Appendix A Code Style
- Chapter 5 Objects Take You Flying
- 5.1 Storage
- 5.2 An Inch of Time
- 5.3 Things That Look Like That
- 5.4 Python Is Addicted to the Internet
- 5.5 Writing a Crawler
- Chapter 6 Going Deeper with Objects
- 6.1 Everything Is an Object
- 6.2 Attribute Management
- 6.3 I Am the Wind, I Am the Sand
- 6.4 Memory Management
FAQ
这本书适合完全没有编程基础的人吗?
书里的 Python 代码现在还能跑吗?
它和《Python编程:从入门到实践》有什么区别?
作者 Vamei 是谁?
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.