Python Programming for the Absolute Beginner cover

Python Programming for the Absolute Beginner

No rating yet
Chapters
12
ISBN
9787115361448

Tags

Summary

Python Programming for the Absolute Beginner, Third Edition is an introductory Python tutorial for readers with no prior background. The book has 12 chapters, each built around a complete, runnable small game project that embeds syntax points and programming ideas in concrete programming tasks. Readers start with variables, strings, branching, and loops, gradually master lists and dictionaries, functions and modules, and file reading and writing, then move on to object-oriented programming, graphical interface drawing, and handling images, sound, and animation. The author, Michael Dawson, is both a programmer and a professional in game design and production, so the examples throughout the book have the appeal of "build it and you can play it," and each chapter ends with a summary of key points and exercises so readers can check their own mastery. The Chinese edition was translated by Wang Jinlan and published by People's Posts and Telecommunications Press; the book runs about 392 pages. It should be noted that the original edition was written for an earlier version of Python 3, and the third-party libraries used in the examples (such as game engines and graphics libraries) are relatively old, so readers running them in a modern environment may need to adjust them. However, the syntax and programming approaches it teaches remain generally applicable, and it is especially suited to beginners who want to treat "writing code" as something fun to complete; as a bridge from syntax to complete small projects, it remains valuable.

Editor's review

市面上多数 Python 入门书按“语法点—例子”的顺序展开,读完容易陷入“语法都会、项目不会”的状态。这本书的处理方式相反:每一章先立一个能玩的小项目,再在项目推进中引出语法,读者学完一章就留下一个可以运行、可以改写的小作品。对自制力不强、被纯语法讲解劝退的新手来说,这种“以游戏带动学习”的路径明显更好坚持。作者本身有游戏行业经验,例子不难,但足够完整——从猜数字、猜单词到井字棋,覆盖了字符串、容器、函数、文件、类与界面绘制等主干知识,每章配套的小结和练习也让自查有据可依。需要提前提醒两点:一是本书原文版基于早期 Python 3 写成,书中游戏引擎与图形库的安装包如今多已更新,跟着敲代码时可能需要查一下新版用法;二是本书只教入门,不讲工程实践、测试与部署。把它当作“第一本把代码写完的书”,之后再用一本偏工程的书补规范,是不错的搭配。

Who it's for

A good fit for

  • 完全没写过代码、希望用有趣小项目入门 Python 的初学者
  • 觉得纯语法讲解枯燥、需要“边做边学”节奏的自学者
  • 想给中学生或大学低年级学生找编程兴趣入门材料的老师与家长
  • 已了解一点 Python 语法,但没独立写完整程序经验的读者

Not a good fit for

  • 已有编程基础、想系统学习工程规范与项目架构的开发者
  • 希望直接学习数据分析、爬虫或机器学习应用的读者
  • 严格依赖最新 Python 版本与新版第三方库的读者

Reading tips

  1. 按章节顺序阅读,每章务必亲手把游戏项目敲完并跑通,再读下一章。
  2. 遇到第三方库安装报错时,先查该库当前官方文档,用新版示例替代书中的旧版本调用。
  3. 每章末尾的练习题至少完成一半,检验自己能否脱离书本独立改功能。
  4. 读完本书后换一本偏工程实践的书,补上版本管理、测试与打包知识。

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. Chapter 1: Getting Started
  2. Chapter 2: Types, Variables, and Simple I/O
  3. Chapter 3: Branching, while Loops, and Program Planning
  4. Chapter 4: for Loops, Strings, and Tuples
  5. Chapter 5: Lists and Dictionaries
  6. Chapter 6: Functions
  7. Chapter 7: Files and Exceptions
  8. Chapter 8: Software Objects
  9. Chapter 9: Object-Oriented Programming
  10. Chapter 10: GUI Development
  11. Chapter 11: Graphics, Images, and Sound
  12. Chapter 12: Animation and Games

FAQ

这本书适合零基础的人吗?
适合。书中从安装 Python、写第一行代码讲起,不预设任何编程经验;每章都以一个完整的小游戏带动语法学习,难度递进较缓,是全书的入门定位。
书里的例子用的是 Python 2 还是 Python 3?
本书第三版基于 Python 3 编写,示例采用 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.

Top rated in the same category