Beginning Python: From Novice to Professional (3rd Edition) cover

Beginning Python: From Novice to Professional (3rd Edition)

Rating 3.8
Word count
451 words
Chapters
31
Series
Beginning Python: From Novice to Professional (3rd Edition)
ISBN
9787115474889

Tags

Summary

This is a classic introductory text for Python beginners; the English original is the 3rd edition of Beginning Python: From Novice to Professional, fully updated for Python 3. The book starts with installing Python and using the interactive interpreter, first introducing basic concepts such as numbers, expressions, variables, statements, functions, and modules, then moving on to lists and tuples, strings, dictionaries, conditionals and loops, abstraction, exceptions, magic methods, properties, and iterators, helping readers build a fairly complete foundation in syntax and methodology. The middle section expands into practical techniques: file handling, graphical user interfaces, database support, network programming, Python and the Web, the basics of testing, extending Python with C, and packaging and distributing programs. The latter half is organized around ten progressively more challenging hands-on projects, including automatic tagging, drawing charts, XML processing, news aggregation, a virtual tea party, remote editing with CGI, a bulletin board, file sharing with XML-RPC, file sharing with a GUI, and a homemade arcade game, demonstrating the full development process from requirements analysis to implementation, debugging, and deployment. The author, an associate professor at the Norwegian University of Science and Technology, has long taught algorithms and is an avid Python educator; the book is clearly structured with abundant examples, suitable both as a self-study text for absolute beginners and as a systematic way for experienced programmers to fill gaps in their Python knowledge.

Editor's review

在Python入门书里,这本已经出版了多个版本,引进中文版后长期被当作“从零到能做项目”的代表作。它最大的特点在于把知识拆成两条清晰的线索:前面19章从变量、语句一路讲到异常、魔法方法、文件、数据库、网络和测试,既讲“怎么写”,也讲“为什么这样写”;后面10章则把前面学到的全部知识串成一个个能跑起来的项目,从自动添加标签、绘制图表到万能的XML、虚拟茶话会和自制街机游戏,让读者真正体会一次从需求到成品的完整开发过程。作者是挪威科技大学副教授,长期教授算法,行文不绕弯子,示例密集,章节小结还会列出本章新学的函数,方便回头查阅。也要提醒的是,书中部分内容有明显的年代感,例如以XML-RPC、CGI为代表的Web实践方式,读者不必照搬,而应把它们当作理解原理的范本;涉及库版本的部分建议对照官方文档。总体而言,这是一本适合作为“第一本系统性Python教材”的书,读完之后再去看更专门的Web、数据分析或工程实践书,会顺畅很多。

Who it's for

A good fit for

  • 零基础、想系统学一门编程语言的在校学生
  • 有其他语言基础、希望快速掌握Python 3语法与惯用法的开发者
  • 想通过完整项目案例理解开发流程的自学者
  • 需要把Python用于数据处理、脚本自动化等工作的职场人士

Not a good fit for

  • 只想押题刷题、应对单一考试的读者(本书不以考试大纲为纲)
  • 已熟练使用Python、寻求性能优化或架构设计进阶内容的资深开发者
  • 希望专门学习主流Web框架(如Django、Flask)或数据分析库的读者
  • 希望书中所有示例都对应最新版库、即抄即可运行的读者

Reading tips

  1. 零基础读者按章顺序阅读,每章结束后亲手敲一遍示例并完成小结中的函数整理。
  2. 有编程基础者可从第5章起跳读,重点看第9章魔法方法、第16章测试和第20章之后的项目。
  3. 项目部分建议配合第11、12、13、14章同步跟进,先自己实现,再对照书中的做法。
  4. 遇到XML-RPC、CGI等较早的技术方案时,可对照当前Python官方文档换成现代替代方案练习。

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 Instant Hacking: The Basics
  2. Chapter 2 Lists and Tuples
  3. Chapter 3 Working with Strings
  4. Chapter 4 Dictionaries
  5. Chapter 5 Conditionals, Loops, and Some Other Statements
  6. Chapter 6 Abstraction
  7. Chapter 7 More Abstraction
  8. Chapter 8 Exceptions
  9. Chapter 9 Magic Methods, Properties, and Iterators
  10. Chapter 10 Batteries Included
  11. Chapter 11 Files
  12. Chapter 12 Graphical User Interfaces
  13. Chapter 13 Database Support
  14. Chapter 14 Network Programming
  15. Chapter 15 Python and the Web
  16. Chapter 16 Testing 101
  17. Chapter 17 Extending Python
  18. Chapter 18 Packaging Your Programs
  19. Chapter 19 Playful Programming
  20. Chapter 20 Project 1: Instant Markup
  21. Chapter 21 Project 2: Painting a Pretty Picture
  22. Chapter 22 Project 3: XML for All Occasions
  23. Chapter 23 Project 4: In the News
  24. Chapter 24 Project 5: A Virtual Tea Party
  25. Chapter 25 Project 6: Remote Editing with CGI
  26. Chapter 26 Project 7: Your Own Bulletin Board
  27. Chapter 27 Project 8: File Sharing with XML-RPC
  28. Chapter 28 Project 9: File Sharing GUI
  29. Chapter 29 Project 10: Do-It-Yourself Arcade Game
  30. Appendix A A Quick Tour
  31. Appendix B Python Reference Manual

FAQ

这本书对应Python 2还是Python 3?
第3版已针对Python 3全面更新,书中示例均基于Python 3编写,不必担心Python 2的语法差异。
零基础能直接读这本吗?
可以。全书从解释器、变量、表达式讲起,第1章即上手操作;但若完全没有编程概念,建议放慢速度,逐章动手练习。
书中的10个项目现在还能跑吗?
整体思路和代码结构仍有参考价值,但XML-RPC、CGI等方案较为早期,部分第三方库的版本与接口已变,建议参照官方文档微调。
第3版与修订版有什么区别?
修订版(2023年出版)针对Python 3.11更新内容,调整章节结构并增补案例、课件与习题;第3版则是2018年针对Python 3推出的版本。
这本书和《Python编程:从入门到实践》怎么选?
两者都是入门书。本书体系更细、项目更偏“用标准库搭东西”;后者项目更贴近数据与Web应用。可按项目兴趣择一,并不冲突。

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