Python Language Programming cover

Python Language Programming

Rating 3.3
Word count
127K words
Chapters
109
ISBN
9787113313593

Tags

Summary

This book is one of the "14th Five-Year Plan" new-format integrated textbooks for higher education computer education. It systematically introduces the basic theories, methods, and processes of Python programming and presents practical cases in an accessible way. The book has 11 chapters, covering an overview of programming, Python syntax fundamentals, basic data types, selection control structures, loop control structures, combined data, files and data formatting, functions, object-oriented programming, exception handling, and web crawlers. It aims to cultivate readers' computational thinking and improve their ability to solve problems through programming. The book emphasizes application and highlights ideological and political education; it strengthens computational thinking and fosters innovation; and its cases are novel and engaging.

This book is suitable as a textbook for computer programming courses across various majors in higher education institutions, and can also serve as a training textbook for computer programming, a reference for computer examinations, and a self-study book for Python programming enthusiasts.

Editor's review

As a new-format integrated textbook for higher education, this book balances syntax fundamentals with the cultivation of computational thinking, progressing layer by layer from basic data types and control structures to functions and object-oriented programming, forming a relatively complete knowledge chain. A distinctive feature is the inclusion of web crawlers as a teaching chapter, enabling readers to encounter real data acquisition scenarios after mastering the language fundamentals, which enhances the practicality and sense of achievement in learning. The cases emphasize novelty and interest, and together with the integration of ideological and political elements, the book is well suited for combining classroom instruction with hands-on practice. Content such as file and data formatting and exception handling is close to the needs of actual development and helps readers establish standardized programming habits. Overall, the book has a clear positioning: it can serve as systematic introductory material for readers starting from zero, and it can also lay a language foundation for subsequent study in data analysis, web applications, and other directions. It is suitable for chapter-by-chapter study under teacher guidance.

Who it's for

A good fit for

  • Undergraduate students taking programming elective courses across various majors in higher education institutions
  • Beginners who need to systematically learn Python syntax and have requirements for hands-on practice
  • Examination candidates preparing for computer proficiency tests who need textbook-style reference material
  • Programming enthusiasts who wish to understand practical functions such as crawlers through cases

Not a good fit for

  • Readers who already have Python development experience and seek advanced architecture or performance optimization content
  • Readers who prefer purely project-based practice and do not wish to study syntax systematically chapter by chapter
  • People who wish to study the principles of machine learning algorithms in depth rather than the language itself

Reading tips

  1. Study in chapter order, and after finishing each chapter independently complete the exercises before moving to the next chapter
  2. When learning control structures and functions, type out each example code on a computer and observe the output
  3. Before reading the web crawler chapter, review file operations and exception handling first to facilitate understanding of the data flow
  4. Take notes in line with classroom progress and organize error-prone syntax points into a personal quick-reference list

About the publisher

China Railway Publishing House China · Founded in 1951

China Railway Publishing House has long centered on railway professional publishing while also covering rail transit, industrial technology, programming and design, finance and economics, and exam preparation, with about 194 relevant titles in the collection. Representative books include the Automated Operation (FAO) System for Urban Rail Transit, Design Innovation and Practice for Urban Rail Transit Vehicle Depots, Analysis and Application Management of the Level-One Maintenance Inspection Robot System for Electric Multiple Units, as well as engineering practice titles such as the Engineering Summary of the Guangdong Section of the Ganzhou–Shenzhen Railway and Safety Risk Control Technology and Typical Cases of Shield Tunneling in Beijing Urban Rail Transit Construction. Beyond technical monographs, the publisher also offers practical titles such as Python Programming Fundamentals and tax and accounting treatment for real estate development enterprises, with authors including He Peng, Tang Tao, Ding Shukui, and Sun Changjun. Based on public information, its publishing strength lies in drawing on line engineering and operational practice while balancing professional textbooks and general-audience titles; more complete details of its publishing structure are limited in public sources.

Contents

  1. 版权信息
  2. 内容简介
  3. “十四五”高等学校计算机教育新形态一体化系列教材编审委员会
  4. 序
  5. 前言
  6. 第1章 程序设计概述
  7. 1.1 程序设计语言
  8. 1.2 算法
  9. 1.3 编程基本方法
  10. 1.4 Python语言概述
  11. 1.5 Python开发环境
  12. 1.6 应用案例
  13. 小结
  14. 思考与练习
  15. 第2章 Python语法基础
  16. 2.1 编程基本步骤的应用
  17. 2.2 程序的基本元素
  18. 2.3 Python代码风格
  19. 2.4 输入、输出数据
  20. 2.5 Python流程控制语句
  21. 2.6 函数式编程
  22. 2.7 turtle库绘图入门
  23. 2.8 应用案例
  24. 小结
  25. 思考与练习
  26. 第3章 基本数据类型
  27. 3.1 数字类型
  28. 3.2 字符串类型
  29. 3.3 应用案例
  30. 小结
  31. 思考与练习
  32. 第4章 选择控制结构
  33. 4.1 单分支if语句
  34. 4.2 条件判断
  35. 4.3 双分支if...else语句
  36. 4.4 if表达式
  37. 4.5 多分支if...elif...else语句
  38. 4.6 if语句的嵌套
  39. 4.7 random随机库的应用
  40. 4.8 应用案例
  41. 小结
  42. 思考与练习
  43. 第5章 循环控制结构
  44. 5.1 for...in遍历循环
  45. 5.2 while条件循环
  46. 5.3 循环语句的嵌套
  47. 5.4 循环控制命令
  48. 5.5 else子句
  49. 5.6 应用案例
  50. 小结
  51. 思考与练习
  52. 第6章 组合数据
  53. 6.1 组合数据概述
  54. 6.2 元组
  55. 6.3 列表
  56. 6.4 集合
  57. 6.5 字典
  58. 6.6 推导式与迭代器
  59. 6.7 中文分词jieba库和词云wordcloud
  60. 6.8 应用案例
  61. 小结
  62. 思考与练习
  63. 第7章 文件与数据格式化
  64. 7.1 文件基本概念
  65. 7.2 文件的打开与关闭
  66. 7.3 文件的读写操作
  67. 7.4 文件目录管理库os
  68. 7.5 数据的格式化
  69. 7.6 图像处理库PIL入门
  70. 7.7 应用案例
  71. 小结
  72. 思考与练习
  73. 第8章 函数
  74. 8.1 函数概述
  75. 8.2 函数的定义和调用
  76. 8.3 函数参数的传递
  77. 8.4 lambda匿名函数与生成器
  78. 8.5 函数嵌套和递归函数
  79. 8.6 变量的作用域
  80. 8.7 日期时间库datetime
  81. 8.8 应用案例
  82. 小结
  83. 思考与练习
  84. 第9章 面向对象编程
  85. 9.1 面向对象的编程思想
  86. 9.2 类与对象
  87. 9.3 类的属性
  88. 9.4 类的方法
  89. 9.5 访问控制
  90. 9.6 类的特性
  91. 9.7 应用案例
  92. 小结
  93. 思考与练习
  94. 第10章 异常处理
  95. 10.1 异常概述
  96. 10.2 捕获异常
  97. 10.3 抛出异常
  98. 10.4 自定义异常
  99. 10.5 应用案例
  100. 小结
  101. 思考与练习
  102. 第11章 网络爬虫
  103. 11.1 网络爬虫基础知识
  104. 11.2 requests库访问网页
  105. 11.3 beautifulsoup4库解析页面内容
  106. 11.4 正则表达式re库
  107. 11.5 应用案例
  108. 小结
  109. 思考与练习

FAQ

Can readers with zero foundation and no programming experience understand this book?
Yes. The book starts with an overview of programming and Python syntax fundamentals, and the chapters are arranged from easy to difficult. Content such as basic data types and selection and loop structures all starts from concepts. It is recommended to read in order and persist with hands-on practice. When encountering something you do not understand, first run the example code, then return to the written explanation; the learning effect will be better.
Does the web crawler content in the book require additional background knowledge?
Web crawlers are placed in the later chapters of the book, and the preceding knowledge such as file and data formatting, functions, and exception handling has already laid the groundwork. Readers only need to master the syntax and file operations in the earlier chapters to follow the crawler section. If you wish to go deeper into crawling strategies, you will need to consult other specialized materials.
Is this textbook suitable for self-study, or must it be used with a course?
Both are possible. The book includes cases and a chapter system; self-study readers can progress chapter by chapter and complete the exercises, while students in school can combine it with teacher instruction and use classroom emphasis to deepen understanding. For self-study, it is recommended to set a weekly study plan and avoid skipping the exercise sections, so as to ensure a solid grasp of the syntax.

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

Zhang Min is an author about whom limited public information is available; twenty-two works are held under her name in the collection, covering a notably wide range. Her representative titles include the foreign literary classic Jane Eyre, the investment and personal-finance book Tap Dancing to Work: The Joy of Investing and the Wisdom of Life According to Warren Buffett, multiple editions of the Standard Korean series, and A Chinese-Korean Translation Course. The common categories show that her works span exam preparation, personal finance, inspirational growth, programming and design, design, and general computing, suggesting that she writes mainly for practical learning and general readers, offering accessible knowledge and methods. As biographical details are unavailable, her nationality, dates, and professional background cannot be confirmed, and readers may judge her focus from the individual titles.

More by the same author

Top rated in the same category