Python Programming cover

Python Programming

Rating 3.0
Word count
118K words
Chapters
145
ISBN
9787113307653

Tags

Summary

This book is written from a beginner's perspective and explains in 12 chapters computers and programs, writing simple Python programs, object orientation and graphics, sequences, functions, decision structures, loop structures and Boolean values, data collection, simulation and design, classes and objects, object-oriented design, and the Python computational ecosystem. It also covers exception handling and testing, debugging, unit testing, and documentation testing.

The book incorporates the test point system of the National Computer Rank Examination Level 2 Python Language Programming exam and introduces a series of interesting small program cases such as health alarms, coin change statistics, projectile flight, and short-handled squash matches. It explains them step by step and is accompanied by abundant interface diagrams, adding fun to programming learning.

Each chapter ends with knowledge extension and short stories about famous people, paying attention to students' quality education while teaching.

Editor's review

This book explains Python programming from a beginner's perspective in 12 chapters. It covers the fundamentals of computers and programs, writing simple programs, sequences, functions, decision and loop structures, data collection, classes and objects, object-oriented design, and the Python computational ecosystem, and also addresses engineering habits such as exception handling, testing, and debugging. The book incorporates the test point system of the National Computer Rank Examination Level 2 Python Language Programming exam and uses small cases such as health alarms, coin change statistics, projectile flight, and short-handled squash matches to explain concepts step by step. The interface diagrams are relatively abundant, lowering the threshold for beginners. Each chapter includes knowledge extension and short stories about famous people, balancing quality education. It is suitable as a textbook for introductory courses in higher vocational colleges or undergraduate programs, and also for readers preparing for Level 2 Python who want systematic study; self-learners can follow the cases to consolidate syntax and design ideas.

Who it's for

A good fit for

  • College students with no prior experience or beginner Python learners who need a systematic introduction
  • Candidates preparing for the National Computer Rank Examination Level 2 Python Language Programming exam
  • Python course teachers who use case-based teaching and need a supporting textbook
  • Self-learners who want to understand syntax and object-oriented design through small cases

Not a good fit for

  • Developers who already have Python foundations and seek advanced frameworks or engineering practice
  • Readers focusing on vertical fields such as data analysis or machine learning
  • Users who only want a quick syntax reference and do not need a systematic tutorial

Reading tips

  1. Study the chapters in order, reading the concepts first and then typing each case in the book by hand.
  2. Rewrite and extend cases such as health alarms and coin change to deepen understanding of syntax.
  3. After learning functions and classes, try to independently design a small program and write unit tests for it.
  4. Readers preparing for Level 2 can compare chapters with the test point system and mark corresponding key points for review.

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. 第1章 计算机和程序设计基础
  5. 1.1 现代计算机
  6. 1.2 硬件基础
  7. 1.3 计算机科学
  8. 1.4 程序的力量
  9. 1.5 编程语言
  10. 1.6 初识Python
  11. 1.7 Python解释器
  12. 1.8 Python程序内部
  13. 小结
  14. 知识拓展 Python技术演变史
  15. 名人小故事 计算机教育与普及的辛勤耕耘者与奠基人——谭浩强
  16. 二级考试对应知识点
  17. 习题
  18. 第2章 Python编写简单程序
  19. 2.1 软件开发过程
  20. 2.2 程序要素
  21. 2.3 常量与变量
  22. 2.4 Python的代码编写规范
  23. 2.5 输出语句
  24. 2.6 赋值语句
  25. 2.7 数值数据类型
  26. 2.8 类型转换和舍入
  27. 2.9 使用math库
  28. 小结
  29. 知识拓展 Python关键字的含义
  30. 名人小故事 职守核心技术——倪光南
  31. 二级考试对应知识点
  32. 习题
  33. 第3章 面向对象和图形
  34. 3.1 概述
  35. 3.2 对象的理解
  36. 3.3 简单图形编程
  37. 3.4 turtle函数库介绍
  38. 小 结
  39. 知识拓展 运算符优先级
  40. 名人小故事 中国“量子之父”——潘建伟
  41. 二级考试对应知识点
  42. 习题
  43. 第4章 字符串、列表、元组和文件
  44. 4.1 字符串数据类型
  45. 4.2 简单字符串处理
  46. 4.3 列表
  47. 4.4 元组
  48. 4.5 字符串表示的方式和消息编码
  49. 4.6 从编码到加密
  50. 4.7 字符串的输入输出操作
  51. 4.8 文件
  52. 小结
  53. 知识拓展 Python的格式字符
  54. 名人小故事 中国汉字激光照排之父——王选
  55. 二级考试对应知识点
  56. 习题
  57. 第5章 函数
  58. 5.1 函数的功能
  59. 5.2 认识函数
  60. 5.3 返回值的函数
  61. 5.4 修改参数的函数
  62. 5.5 函数和程序结构
  63. 5.6 递归函数
  64. 小结
  65. 知识拓展 内置函数
  66. 名人小故事 创造了国产软件的骄傲——求伯君
  67. 二级考试对应知识点
  68. 习题
  69. 第6章 判 断 结 构
  70. 6.1 简单判断
  71. 6.2 二路判断
  72. 6.3 多路判断
  73. 6.4 异常处理
  74. 6.5 设计研究:求最大数
  75. 小结
  76. 知识拓展 Python的标准库和常用的第三方库
  77. 名人小故事 杀毒行业的先锋——王江民
  78. 二级考试对应知识点
  79. 习题
  80. 第7章 循环结构和布尔值
  81. 7.1 for循环:快速回顾
  82. 7.2 累积结果:阶乘
  83. 7.3 不定循环
  84. 7.4 常见循环模式
  85. 7.5 跳出循环
  86. 7.6 布尔值计算
  87. 7.7 其他常见结构
  88. 小结
  89. 知识拓展 Python工具——Anaconda与IPython
  90. 名人小故事 奥运精神之“亚洲飞人”——苏炳添
  91. 二级考试对应知识点
  92. 习题
  93. 第8章 集合和字典
  94. 8.1 集合
  95. 8.2 字典
  96. 小结
  97. 知识拓展 Python Cheatsheet
  98. 名人小故事 我要回中国了——姚期智
  99. 二级考试对应知识点
  100. 习题
  101. 第9章 模拟和设计
  102. 9.1 模拟技术——短柄壁球示例
  103. 9.2 伪随机数
  104. 9.3 自顶向下的设计
  105. 9.4 自底向上的实现
  106. 小结
  107. 知识拓展 Python编辑工具——Jupyter Notebook
  108. 名人小故事 破解MD5 算法的女强人——王小云
  109. 二级考试对应知识点
  110. 习题
  111. 第 10 章 类与对象
  112. 10.1 对象
  113. 10.2 自定义的类——模拟炮弹示例
  114. 10.3 定义新类
  115. 10.4 用类处理数据
  116. 10.5 对象和封装
  117. 10.6 控件
  118. 10.7 示例:炮弹动画
  119. 小结
  120. 知识拓展 Python工具——Skulpt
  121. 名人小故事 中国互联网运动的先锋——王志东
  122. 二级考试对应知识点
  123. 习题
  124. 第 11 章 面向对象设计
  125. 11.1 面向对象设计的过程
  126. 11.2 类和实例
  127. 11.3 数据封装
  128. 11.4 访问限制
  129. 11.5 继承和多态
  130. 11.6 获取对象信息
  131. 11.7 实例属性和类属性
  132. 11.8 案例研究:壁球模拟
  133. 小结
  134. 知识拓展 Python开发社区
  135. 科技创新 华为公司
  136. 二级考试对应知识点
  137. 习题
  138. 第 12 章 Python库及计算生态
  139. 12.1 标准库
  140. 12.2 第三方库
  141. 12.3 Python计算生态
  142. 小结
  143. 知识拓展 Python第三方库纵览
  144. 二级考试对应知识点
  145. 习题

FAQ

Can readers with no programming background understand this book?
This book starts from the fundamentals of computers and programs and progresses chapter by chapter. The cases are accompanied by interface diagrams, making it suitable for beginners. It is recommended to type the code while reading; when encountering errors, first troubleshoot on your own and then refer to the book's explanations. This will be much more effective than reading without practice.
What is the relationship between the cases in the book and the exam test points?
This book incorporates the test point system of the National Computer Rank Examination Level 2 Python Language Programming exam. The cases help readers understand syntax and program design ideas. When preparing for the exam, you can review chapters against the test points, but the specific exam requirements should still be based on the official syllabus for the current year.
What level can I reach after finishing this book?
After studying the book completely and completing the exercises, you can master introductory knowledge such as basic Python syntax, common data structures, functions, classes and objects, exception handling, and testing and debugging, and can write small programs. The object-oriented design and computational ecosystem sections lay a foundation for further study, but more project practice is still needed for engineering practice.

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 Su Lin is currently limited. With six titles carried in the library, her writing spans cultural popularization, self-help and personal growth, computer education, and history. Her cultural work, A Quick Guide to Chinese Tea Culture, presents the basics of tea culture in clear, accessible language. In the self-help field, The Wisdom of Not Complaining for 365 Days (Yoga for the Mind) and The Immersive Learning Method You Can Master at Once focus on adjusting one's mindset and improving study methods. For computing, she is the author of Python Programming, an introduction to programming fundamentals for beginners. Her history titles, The Tweun Order: Emperor Wu of Han's Masterstroke and What You Should Know About Breaking Through with Strategy (3-volume set), draw on historical episodes to discuss strategy and approaches to handling affairs. Overall, her writing leans toward knowledge popularization and practical guidance, with plain language and an emphasis on readability for beginning readers.

胡洋 Author

Hu Yang is an author about whom little public information is currently available: his nationality, dates of birth and death, educational background, and professional experience are not clearly documented, and only one of his works is held in the collection. Based on the existing information, Hu Yang is known for the book Python Programming, which falls under the general computing category and belongs to the field of programming language learning for beginners. Works of this kind are typically aimed at newcomers and university students, emphasizing the connection between syntax fundamentals, programming thinking, and hands-on practice. The book can be presumed to adopt a teaching-oriented, example-driven approach that moves from the simple to the more advanced, turning abstract concepts into workable coding exercises. Since details about the author's personal background and writing career remain incomplete, a full assessment of his style and broader influence awaits further material.

何小平 Author

He Xiaoping: publicly available information about this author is currently limited, and a complete personal and professional background cannot be confirmed. According to the records in the library, He Xiaoping has one work, Python Programming, which is categorized under general computer science and is a technical book aimed at programming learners. Python is known for its concise syntax and relatively low entry barrier, and is commonly used for data processing, scripting, and introductory teaching. Textbooks of this kind therefore generally need to balance clear explanations of foundational concepts with guidance for hands-on programming practice. The title Python Programming indicates that the author focuses on the core syntax of the Python language and the methods of program design, serving the needs of beginners. Because more verifiable information is unavailable, He Xiaoping's other writing directions and academic background cannot yet be assessed, and the actual impact of this work remains to be tested by readers and the market.

More by the same author

Top rated in the same category