Fundamentals of the Python Language cover

Fundamentals of the Python Language

Rating 3.3
Word count
192K words
Chapters
83
ISBN
9787121464171

Tags

Summary

This book offers a complete body of knowledge, organized in a sequence that advances with the reader's understanding. It covers programming environments, data types, variables and computation, flow control, errors and error handling, functions, object-oriented programming, modules, file operations, tkinter GUI design, and databases and database connection operations.

The book has 12 chapters, each with detailed explanations of concepts and principles, along with many fine illustrations, code examples, and end-of-chapter exercises. Unlike similar textbooks, this book casts itself as a companion and interlocutor, giving readers a sense of belonging in learning and making learning a pleasure.

At the same time, the book stresses the cultivation of modes of thinking throughout, striving to give readers the ability to use Python to describe problems, analyze problems, and ultimately design and implement software solutions.

Editor's review

This book organizes its content in the stance of a "companion and interlocutor," linking topics such as programming environments, data types, flow control, error handling, functions, object orientation, modules, file operations, GUI, and database connections in a sequence that advances with the reader's understanding, forming a fairly complete chain of introductory knowledge. Its strength lies in following explanations of concepts and principles with many illustrations and code examples, plus end-of-chapter exercises, so readers can test their understanding through hands-on practice; throughout, the book emphasizes cultivating modes of thinking, guiding readers to use Python to describe problems, analyze problems, and design and implement solutions, rather than stopping at memorizing syntax. For self-learners who need to build a systematic foundation and want sustained reading motivation, this arrangement can reduce the chance of giving up midway; for classroom teaching, the clear chapter structure and accompanying exercises also make it easy to plan progress and assign practice. Overall, this is a book suitable as a main textbook for an introduction to Python, and its value lies in balancing a complete system with a good learning experience.

Who it's for

A good fit for

  • Readers with zero background or new to programming who want to systematically master Python syntax and basic programming methods
  • Teachers or trainers who need a clearly structured textbook with exercises to plan classroom teaching
  • Learners with some background in other languages who want to review the key points of introductory Python through a complete knowledge system
  • Self-learners who prefer to understand concepts through code examples and illustrations and who like to read step by step

Not a good fit for

  • Readers who already have Python development experience and are looking for advanced topics or engineering practice
  • People who want to directly study specific application areas such as data analysis or machine learning without systematically learning the basics
  • Readers who only want a syntax quick-reference manual and do not want to read chapters in order

Reading tips

  1. Read in chapter order; for each chapter, first read through the concepts and principles, then run the code examples section by section and use the illustrations to understand them.
  2. Try to complete the end-of-chapter exercises independently; when encountering errors, debug them yourself first, then review the chapters on error handling.
  3. When studying functions and object-oriented programming, rewrite the small exercises from earlier chapters as functions or classes to reinforce the connections between topics.
  4. After reading file operations and database connections, try a small comprehensive exercise that links the GUI with data storage.

About the publisher

Publishing House of Electronics Industry China · Founded in 1982

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

  1. 版权信息
  2. 作者简介
  3. 内容简介
  4. 前言
  5. 致谢
  6. 本书使用说明
  7. 第1章 绪论
  8. 1.1 计算机程序语言层级结构
  9. 1.2 人机系统结构
  10. 1.3 Python简介
  11. 1.4 计算机发展简史
  12. 1.5 小结
  13. 1.6 课后思考与练习
  14. 第2章 编程环境
  15. 2.1 理论模型解释
  16. 2.2 Python编程环境配置
  17. 2.3 IDLE编辑器使用简介
  18. 2.4 课后思考与练习
  19. 第3章 数据类型
  20. 3.1 数值类型的计算机表示原理及其语法基础
  21. 3.2 字符串类型的计算机表示原理及其语法基础
  22. 3.3 布尔类型的语法基础
  23. 3.4 元组型的语法基础
  24. 3.5 列表型的语法基础
  25. 3.6 字典的语法基础
  26. 3.7 集合型的语法基础
  27. 3.8 课后思考与练习
  28. 第4章 变量与计算
  29. 4.1 变量的含义
  30. 4.2 变量的动态属性
  31. 4.3 变量的命名
  32. 4.4 与变量相关的简单函数
  33. 4.5 运算符和表达式
  34. 4.6 课后思考与练习
  35. 第5章 流程控制
  36. 5.1 条件分支
  37. 5.2 循环
  38. 5.3 课后思考与练习
  39. 第6章 错误与错误处理
  40. 6.1 语法错误
  41. 6.2 异常错误
  42. 6.3 错误处理
  43. 6.4 调试模式
  44. 6.5 课后思考与练习
  45. 第7章 函数
  46. 7.1 函数的定义与调用
  47. 7.2 变量作用域、参数传递与参数类型
  48. 7.3 内建函数
  49. 7.4 课后思考与练习
  50. 第8章 面向对象的程序设计
  51. 8.1 类的简单定义和实例化
  52. 8.2 构造函数与析构函数
  53. 8.3 类的成员
  54. 8.4 类的继承
  55. 8.5 多态
  56. 8.6 运算符重载
  57. 8.7 小结
  58. 8.8 课后思考与练习
  59. 第9章 模块
  60. 9.1 模块的引用
  61. 9.2 模块的部署位置及搜索顺序
  62. 9.3 自定义模块
  63. 9.4 第三方模块的管理
  64. 9.5 常用内建模块
  65. 9.6 课后思考与练习
  66. 第10章 文件操作
  67. 10.1 文件系统简介
  68. 10.2 文件对象的基本操作
  69. 10.3 文件夹的基本操作
  70. 10.4 课后思考与练习
  71. 第11章 tkinter图形界面设计
  72. 11.1 窗口的创建
  73. 11.2 窗口内元素的布局
  74. 11.3 tkinter常用组件
  75. 11.4 tkinter.Canvas图形绘制组件
  76. 11.5 tkinter事件处理
  77. 11.6 图形界面设计综合范例
  78. 11.7 课后思考与练习
  79. 第12章 数据库与数据库连接操作
  80. 12.1 数据库管理系统、数据库和数据表
  81. 12.2 在本地部署MySQL数据库管理系统
  82. 12.3 数据库连接操作
  83. 12.4 课后思考与练习

FAQ

I have no programming background at all. Can I read this book directly?
Yes. The book is organized in a sequence that advances with the reader's understanding, starting from programming environments and basic data types. Concepts and principles are explained in detail, with illustrations and code examples. Readers with zero background can gradually build a programming foundation by reading the chapters in order and persisting in running the examples; when something is unclear, they can practice repeatedly with the end-of-chapter exercises.
Do I need to do all the code examples and exercises in the book hands-on?
It is recommended to do as much hands-on work as possible. The book includes many code examples and end-of-chapter exercises, intended to let readers test their understanding of concepts in practice. Even with limited time, you should at least run and understand the main examples in each chapter completely; for the end-of-chapter exercises, you can focus on those related to your weaker areas.
What exactly does the book mean by cultivating modes of thinking?
According to the book's positioning, it emphasizes guiding readers to use Python to describe problems, analyze problems, and ultimately design and implement software solutions, rather than merely memorizing syntax. While reading, ask yourself more often, "How can this problem be broken down, and what structure should express it?" and use each chapter's knowledge to solve small problems, gradually forming a programming approach.
Which Python application areas does the book cover after finishing it?
The book covers basic topics such as programming environments, data types, flow control, error handling, functions, object orientation, modules, file operations, tkinter GUI design, and database connection operations. After finishing it, readers have the foundation needed to continue studying areas such as data analysis and web development, but specific application fields still require separately studying the relevant specialized content.

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 Xiaowei is limited. Two works currently appear under this name, one in the field of foreign literature and the other in general computing. The first, The Old Man and the Sea, points to a Chinese translation or related compilation of Hemingway's classic novella, while Python Language Basics is an introductory programming book. The two works differ widely in subject matter, making it difficult to infer the author's professional background or personal experience. Based on the available information, Wang Xiaowei's work seems to span both literary translation and the popularization of computer technology, presenting a foreign literary classic to general readers while also providing beginners with foundational knowledge of Python. Owing to the lack of detailed biographical and editorial information, the author's writing style and specific contributions cannot yet be fully assessed; readers may form their own view from the actual content of these two works.

More by the same author

Top rated in the same category