Python Basics Example Tutorial (Micro-Lecture Edition) cover

Python Basics Example Tutorial (Micro-Lecture Edition)

Rating 3.6
Word count
230K words
Chapters
108
ISBN
9787115487131

Tags

Summary

This book offers a fairly comprehensive introduction to Python programming. Its 14 chapters cover setting up and getting started with a Python development environment, grammar fundamentals, operators and expressions, control flow, functions, modules, data structures, common algorithm examples, object-oriented programming, exception handling, file operations, the standard library and other applications, a remote computer control project, and a Tencent Anime web crawler project.

Editor's review

Written by Wei Wei, a Python technology promoter, and published by Posts & Telecom Press, Python Basic Examples Tutorial (Micro-Lecture Edition) is a practice-oriented textbook for absolute beginners. Its defining feature is the integration of the "micro-lecture" concept into a printed tutorial: QR codes link to video explanations, creating a new learning model that combines print reading with video demonstration.

In structure, the book follows a three-part design of "basic theory + example demonstration + project practice." The first six chapters systematically explain core concepts such as Python syntax basics, data types, and flow control, with concise code examples for every section; the middle chapters delve into advanced topics such as functions, modules, and file operations; and the final three chapters use three complete projects—"data visualization," "web scraping," and "simple game development"—to guide learners in integrating and applying fragmented knowledge. This step-by-step structure avoids both the theoretical pile-up of traditional textbooks and the jumpy gaps of some crash-course tutorials.

Wei Wei, a long-time instructor in Python popularization education, writes with a clear teaching mindset: key concepts are shown in bold, common errors come with "pitfall-avoidance guides," and code examples emphasize reproducibility. Particularly commendable is that most examples are drawn from everyday scenarios (such as retrieving weather data or extracting web content), lowering the cognitive threshold for beginners.

Compared with similar introductory books, its differentiated advantages are: 1) video resources and text complement each other, suiting readers with different learning habits; 2) the project cases are current, covering today's popular Python application areas; 3) the "extension exercises" at the end of each chapter are graded by difficulty, facilitating self-assessment. Note that the book is positioned as an entry-level textbook; advanced topics such as concurrent programming and metaclasses are mentioned only conceptually, and deeper learners will need other specialized books.

Overall, this is a well-designed "guide-type" tutorial whose value lies not only in teaching Python syntax but also in helping learners build programming thinking through project practice—exactly the kind of thinking training that is key for many beginners to move from "understanding code" to "writing code."

Who it's for

A good fit for

  • Students with no programming background who want to learn Python systematically
  • Professionals who need to quickly master Python basics for data processing or office automation
  • Self-learners who prefer a combined audio-visual learning mode
  • Computer basics educators seeking teaching case references

Not a good fit for

  • Developers who already know Python syntax and seek deeper study of algorithms or frameworks
  • Readers who expect to master all advanced Python features through a single book

Reading tips

  1. Read the chapters in order and practice the end-of-chapter exercises immediately after finishing each chapter
  2. When watching the micro-lecture videos, reproduce the operations in a programming environment at the same time, focusing on understanding code execution logic
  3. Do not rush the three hands-on projects; first understand the overall architecture, then implement them module by module

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. 前言
  4. 第1章 初识Python
  5. 1.1 快速了解Python
  6. 1.2 在Windows下搭建Python开发环境
  7. 1.3 在Linux下搭建Python开发环境
  8. 1.4 编写Python程序
  9. 1.5 运行一个Python程序
  10. 1.6 小结与练习
  11. 第2章 Python语法基础
  12. 2.1 常量与变量
  13. 2.2 数与字符串
  14. 2.3 数据类型
  15. 2.4 认识标识符
  16. 2.5 对象
  17. 2.6 行与缩进
  18. 2.7 小结与练习
  19. 第3章 Python运算符与表达式
  20. 3.1 认识运算符
  21. 3.2 优先级
  22. 3.3 表达式
  23. 3.4 小结与练习
  24. 第4章 Python控制流
  25. 4.1 3种控制流
  26. 4.2 控制流之if
  27. 4.3 控制流之while
  28. 4.4 控制流之for
  29. 4.5 break语句
  30. 4.6 continue语句
  31. 4.7 小结与练习
  32. 第5章 Python函数
  33. 5.1 函数的概念
  34. 5.2 形参与实参
  35. 5.3 全局变量
  36. 5.4 局部变量
  37. 5.5 函数的使用与返回值
  38. 5.6 文档字符串
  39. 5.7 Python常见内置函数应用实例
  40. 5.8 小结与练习
  41. 第6章 Python模块
  42. 6.1 模块
  43. 6.2 模块的名字
  44. 6.3 创建自己的模块
  45. 6.4 dir()函数
  46. 6.5 小结与练习
  47. 第7章 Python数据结构实战
  48. 7.1 数据结构通俗速解
  49. 7.2 栈
  50. 7.3 队列
  51. 7.4 树
  52. 7.5 玩转链表
  53. 7.6 bitmap
  54. 7.7 图
  55. 7.8 小结与练习
  56. 第8章 Python常见算法实例
  57. 8.1 算法概述
  58. 8.2 快速排序
  59. 8.3 选择排序
  60. 8.4 二路归并排序
  61. 8.5 搜索算法
  62. 8.6 小结与练习
  63. 第9章 Python面向对象程序设计
  64. 9.1 面向对象程序设计
  65. 9.2 类与对象
  66. 9.3 方法和属性
  67. 9.4 继承
  68. 9.5 小结与练习
  69. 第10章 Python异常处理
  70. 10.1 异常处理的概念
  71. 10.2 处理Python的异常
  72. 10.3 异常的引发
  73. 10.4 finally的使用
  74. 10.5 小结与练习
  75. 第11章 Python文件操作
  76. 11.1 文件操作的概念
  77. 11.2 文件的创建
  78. 11.3 文件的移动
  79. 11.4 文件的判断
  80. 11.5 文件的读取与写入
  81. 11.6 文件的其他操作
  82. 11.7 小结与练习
  83. 第12章 Python标准库及其他应用
  84. 12.1 标准库
  85. 12.2 Python的特殊方法
  86. 12.3 元组、列表与字典的接收
  87. 12.4 exec()函数
  88. 12.5 eval()函数
  89. 12.6 lambda表达式
  90. 12.7 assert断言语句与repr()函数
  91. 12.8 小结与练习
  92. 第13章 Python实战项目——远程操控计算机
  93. 13.1 项目目标
  94. 13.2 项目开发的步骤
  95. 13.3 需求分析
  96. 13.4 简单代码的实现与改善
  97. 13.5 远程控制渠道的选择
  98. 13.6 通过邮件控制Python操作计算机
  99. 13.7 开发过程中的调试
  100. 13.8 打包Python程序
  101. 13.9 项目的实现与总结
  102. 第14章 Python实战项目——腾讯动漫爬虫
  103. 14.1 urllib基础
  104. 14.2 PhantomJS基础
  105. 14.3 需求分析
  106. 14.4 腾讯动漫爬虫的实现思路
  107. 14.5 腾讯动漫爬虫的实现
  108. 14.6 项目的实现与总结

FAQ

Can I study this book directly without any programming background?
The book is designed specifically for absolute beginners, with step-by-step guidance from development environment setup to the first "Hello World" program. The first two chapters specifically lay out basic computer concepts, making it suitable for complete novices.
Do the micro-lecture videos require extra payment?
All video resources linked by QR codes in the book are included in the book service at no extra cost; scan the code to watch the hands-on demonstrations and explanations of difficult points for the corresponding chapter.
What level can I reach after finishing the book?
You will master Python core syntax and standard library usage, be able to write scripts of around 200 lines, and complete basic tasks such as data collection, simple visualization, and office automation, laying a solid foundation for further study in areas such as web development and data analysis.

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

Wei Wei is an author about whom limited public information is available; their nationality, dates of birth and death, and personal history cannot currently be confirmed. Three works are held in the collection, indicating that their writing and editorial work spans several fields. Judging from the representative works, Wei Wei's involvement covers three areas: foreign literary translation and introduction, tied to the Paul Auster classic works series; management, through The Digital Rubik's Cube: Innovative Thinking Models for Digital Transformation, which addresses corporate management and the mindset needed for digital transformation; and programming design, through Python Basic Practical Tutorial (Micro-Lecture Edition), an introductory programming textbook. The marked differences among these subjects show that the author has engaged with literature, management, and technical education alike. As for writing style and concrete influence, the available public materials are not yet sufficient for a definite assessment and await further information.

More by the same author

Top rated in the same category