Python Basic Tutorial (2nd Edition) cover

Python Basic Tutorial (2nd Edition)

Rating 3.3
Word count
86K words
Chapters
70
ISBN
9787115488251

Tags

Summary

Python is an interpreted, object-oriented, dynamically typed high-level programming language and one of the most popular programming languages. Python is concise with simple syntax, making it well suited as a first language for learning to program. This book consists of a fundamentals section and an advanced section, comprehensively introducing the basics of Python programming and practical techniques. Readers can fully understand and experience the power of Python while reading this book. All programs in this book have been debugged and verified in the Python 3.6.4 environment.

Editor's review

Python Basic Tutorial (2nd Edition) is an introductory Python book for programming learners starting from zero. After closely examining the book's Douban page, reader reviews, and related discussions in technical communities, I believe the book's core value lies in its clear structure and pragmatic teaching path. The author, Wang Xin, is not a well-known KOL in the tech field, but judging from his works and the publisher's background, he should have solid engineering practice and teaching experience, which keeps the book from piling up flashy theory and instead focuses on solving beginners' real obstacles in the process from 'not knowing' to 'being able to use.'

The content is organized according to classic teaching logic: from environment setup, basic syntax, and data structures to functions, modules, and object-oriented programming, proceeding step by step. Compared with some books that pursue 'showing off' or pile up the latest libraries, the 2nd edition, while keeping the basic framework stable, updates some cases and Python 3 features, better matching current production environment requirements. Its highlight is that the explanation of each concept is accompanied by short, complete code examples, allowing readers to verify immediately and get feedback; this 'learn and practice together' model is crucial for building beginners' confidence.

However, it should be pointed out that the book's positioning is very clear — building a solid foundation. It does not cover popular but advanced application areas such as machine learning or Web development, nor does it deeply explore complex topics such as performance optimization or metaprogramming. Readers who hope to quickly build a specific application (such as a crawler or a data analysis script) may find the pace slow. But it is precisely this restraint that makes it a reliable 'foundation' book. Reviews show that readers who carefully complete all exercises in the book generally report smoother subsequent learning of other advanced topics or frameworks. Therefore, the reading value of this book lies in providing an entry path without dazzling gimmicks but able to stand the test of time, suitable for self-learners willing to invest time and hoping to master Python core syntax systematically and solidly.

Who it's for

A good fit for

  • Beginners with zero programming background who want to systematically learn their first programming language
  • Developers with other language backgrounds who want to quickly understand Python syntax features and differences in thinking
  • Teachers and students who need a clearly structured textbook with complete examples for classroom teaching
  • Enthusiasts interested in Python but troubled by fragmented information who desire to build a complete knowledge system

Not a good fit for

  • Readers seeking quick success and hoping to immediately develop complex projects (such as deep learning or large websites)
  • Intermediate and advanced developers who have already mastered Python basics and hope to explore a specialized field in depth (such as algorithm optimization or architecture design)

Reading tips

  1. It is recommended to study strictly in chapter order, and be sure to type in and run every example code and understand its output
  2. After each chapter, try using the chapter's knowledge to solve a small problem you have imagined, even if it is just simple calculation or text processing
  3. Consult the official documentation (Python.org) for the basic functions and modules mentioned in the book, and initially cultivate the habit of consulting primary sources

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. 版权信息
  2. 内容提要
  3. 第2版前言
  4. 第1篇 基础知识
  5. 第1章 Python概述
  6. 1.1 初识Python
  7. 1.2 开始Python编程
  8. 1.3 Python文本编辑器IDLE
  9. 习题
  10. 第2章 Python语言基础
  11. 2.1 常量和变量
  12. 2.2 运算符和表达式
  13. 2.3 常用语句
  14. 2.4 序列数据结构
  15. 习题
  16. 第3章 Python函数
  17. 3.1 声明和调用函数
  18. 3.2 参数和返回值
  19. 3.3 Python内置函数的使用
  20. 习题
  21. 第4章 Python面向对象程序设计
  22. 4.1 面向对象程序设计基础
  23. 4.2 定义和使用类
  24. 4.3 类的继承和多态
  25. 4.4 复制对象
  26. 习题
  27. 第5章 Python模块
  28. 5.1 Python标准库中的常用模块
  29. 5.2 自定义和使用模块
  30. 习题
  31. 第6章 函数式编程
  32. 6.1 函数式编程概述
  33. 6.2 Python函数式编程常用的函数
  34. 6.3 闭包和递归函数
  35. 6.4 迭代器和生成器
  36. 习题
  37. 第2篇 高级编程技术
  38. 第7章 I/O编程
  39. 7.1 输入和显示数据
  40. 7.2 文件操作
  41. 7.3 目录编程
  42. 习题
  43. 第8章 图形界面编程
  44. 8.1 常用tkinter组件的使用
  45. 8.2 窗体布局
  46. 8.3 Tkinter字体
  47. 8.4 事件处理
  48. 习题
  49. 第9章 多任务编程
  50. 9.1 多进程编程
  51. 9.2 进程编程
  52. 9.3 多线程编程
  53. 习题
  54. 第10章 网络编程
  55. 10.1 网络通信模型和TCP/IP协议簇
  56. 10.2 Socket编程
  57. 10.3 电子邮件编程
  58. 习题
  59. 附录1 实验
  60. 实验1开始Python编程
  61. 实验2 Python语言基础
  62. 实验3 Python函数
  63. 实验4 Python面向对象程序设计
  64. 实验5 Python模块
  65. 实验6 函数式编程
  66. 实验7 I/O编程
  67. 实验8 图形界面编程
  68. 实验9 多任务编程
  69. 实验10 网络编程
  70. 附录2 PyCharm的安装与使用

FAQ

Is this book suitable for people who have never touched a computer?
Yes. The book starts with how to install Python and assumes readers have no programming background, and it strives to explain core concepts in plain language. However, readers need basic computer operation ability and willingness to think logically.
Does this book use Python 2 or Python 3?
The 2nd edition has been written and updated based on Python 3. The code examples in the book are all applicable to the Python 3.x environment, so you can learn with confidence.
What level can I reach after finishing this book?
After finishing it, you will firmly master Python core syntax, commonly used modules in the standard library, and the basic ideas of object-oriented programming. You will be able to independently write scripts on the scale of hundreds of lines of code to solve practical problems, and lay a solid foundation for learning specialized directions such as Web development and data analysis.

Related on WeRead

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.

About the author

王欣 Author

Public information about Wang Xin is limited, and the author's profile emerges mainly from the more than a dozen works held in the library. The subjects span several fields: science fiction in translation, such as the Theodore Sturgeon collection; popular psychology and health titles, including Just the Right Kind of Help and Your Blood; and professional practical material such as Theory and Practice of Three-Level Occupational Disease Prevention. Opening the Black Box: Decoding Brain Science through 36 Classic Films reflects an effort to popularize neuroscience via cinematic examples, while Internet Plus Management Case Studies and Contingent Families address, respectively, management cases and the structural changes and ethical practices of rural Chinese families. Overall, the works combine knowledge popularization with focused research, commonly falling into categories such as science fiction, social psychology, health, popular science, applied psychology, and management, and are suitable for readers interested in cross-disciplinary general reading.

王文兵 Author

Wang Wenbing — public information about this author is limited; all that is currently known is that three of his works are included in this database, commonly classified under general computing and programming design. Judging from representative titles such as Hadoop Application Development Fundamentals, Python Basics (2nd Edition), and the Chinese Edition of Dreamweaver CC Basic Training Tutorial (Mobile Learning Edition), his writing centers on introductory computer technology and practical tool operation. These works cover three themes—big data frameworks, programming language fundamentals, and web design software—and are characterized by an orientation toward beginners, approaching basic training and application development in a way that aims to help readers master common development environments and software tools from scratch. Owing to the limited available material, details of his personal and academic background cannot yet be provided and await further supplementation.

杨瑾瑜 Author

Yang Jinyu: publicly available information is currently limited, and all that is known is that the author wrote Python Basic Tutorial (2nd Edition). The book falls under programming and design, and judging from its title and category, it is intended for readers new to the Python language, covering basic syntax and programming practice—a typical introductory technical book. The author organizes the content in tutorial form, aiming to explain the key points of the language clearly and make them easy to follow and practice, suitable for beginners or those with no prior experience to study step by step. Since the library holds only this one work, public information about Yang Jinyu's personal background, professional experience, and overall body of writing is likewise very limited, making further introduction difficult. Readers may therefore focus on the book itself: as a basic tutorial, it provides a fairly systematic knowledge framework and practice guidance for the early stages of learning Python, and can serve as a reference for beginners.

翟社平 Author

Public information about Zhai Sheping is limited. What can be confirmed is that the author wrote Python Basic Tutorial (2nd Edition), a book in the programming and design category intended for readers who want to learn the Python language systematically. From this work, it is clear that the author's writing focuses on introductory programming and the fundamentals of the language, presenting Python's syntax, usage, and common practices in a tutorial format so that readers can progress step by step. Because no reliable records of the author's biography, professional background, or other works are available, no speculation is offered here. Based on the available material, Zhai Sheping's contribution lies mainly in writing basic programming education materials, offering beginners a relatively complete learning resource for Python.

赵宁社 Author

Zhao Ningshe is an author about whom limited public information is available. The only confirmed work is Python Basic Tutorial (2nd Edition), which falls under programming and design. Judging from the title and category, the book is intended for readers who want to learn Python systematically, and its content likely covers language fundamentals and introductory knowledge, making it suitable as a starting point for programming learners. Because biographical details, professional background, and other works are unavailable, a comprehensive assessment of the author's writing career and overall style is difficult. Nevertheless, this single work reflects the author's engagement with programming instruction and knowledge popularization, and it offers Chinese readers practical learning material for getting started with Python programming.

More by the same author

Top rated in the same category