Python Programming
Tags
Summary
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
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
- Study the chapters in order, reading the concepts first and then typing each case in the book by hand.
- Rewrite and extend cases such as health alarms and coin change to deepen understanding of syntax.
- After learning functions and classes, try to independently design a small program and write unit tests for it.
- 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 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章 计算机和程序设计基础
- 1.1 现代计算机
- 1.2 硬件基础
- 1.3 计算机科学
- 1.4 程序的力量
- 1.5 编程语言
- 1.6 初识Python
- 1.7 Python解释器
- 1.8 Python程序内部
- 小结
- 知识拓展 Python技术演变史
- 名人小故事 计算机教育与普及的辛勤耕耘者与奠基人——谭浩强
- 二级考试对应知识点
- 习题
- 第2章 Python编写简单程序
- 2.1 软件开发过程
- 2.2 程序要素
- 2.3 常量与变量
- 2.4 Python的代码编写规范
- 2.5 输出语句
- 2.6 赋值语句
- 2.7 数值数据类型
- 2.8 类型转换和舍入
- 2.9 使用math库
- 小结
- 知识拓展 Python关键字的含义
- 名人小故事 职守核心技术——倪光南
- 二级考试对应知识点
- 习题
- 第3章 面向对象和图形
- 3.1 概述
- 3.2 对象的理解
- 3.3 简单图形编程
- 3.4 turtle函数库介绍
- 小 结
- 知识拓展 运算符优先级
- 名人小故事 中国“量子之父”——潘建伟
- 二级考试对应知识点
- 习题
- 第4章 字符串、列表、元组和文件
- 4.1 字符串数据类型
- 4.2 简单字符串处理
- 4.3 列表
- 4.4 元组
- 4.5 字符串表示的方式和消息编码
- 4.6 从编码到加密
- 4.7 字符串的输入输出操作
- 4.8 文件
- 小结
- 知识拓展 Python的格式字符
- 名人小故事 中国汉字激光照排之父——王选
- 二级考试对应知识点
- 习题
- 第5章 函数
- 5.1 函数的功能
- 5.2 认识函数
- 5.3 返回值的函数
- 5.4 修改参数的函数
- 5.5 函数和程序结构
- 5.6 递归函数
- 小结
- 知识拓展 内置函数
- 名人小故事 创造了国产软件的骄傲——求伯君
- 二级考试对应知识点
- 习题
- 第6章 判 断 结 构
- 6.1 简单判断
- 6.2 二路判断
- 6.3 多路判断
- 6.4 异常处理
- 6.5 设计研究:求最大数
- 小结
- 知识拓展 Python的标准库和常用的第三方库
- 名人小故事 杀毒行业的先锋——王江民
- 二级考试对应知识点
- 习题
- 第7章 循环结构和布尔值
- 7.1 for循环:快速回顾
- 7.2 累积结果:阶乘
- 7.3 不定循环
- 7.4 常见循环模式
- 7.5 跳出循环
- 7.6 布尔值计算
- 7.7 其他常见结构
- 小结
- 知识拓展 Python工具——Anaconda与IPython
- 名人小故事 奥运精神之“亚洲飞人”——苏炳添
- 二级考试对应知识点
- 习题
- 第8章 集合和字典
- 8.1 集合
- 8.2 字典
- 小结
- 知识拓展 Python Cheatsheet
- 名人小故事 我要回中国了——姚期智
- 二级考试对应知识点
- 习题
- 第9章 模拟和设计
- 9.1 模拟技术——短柄壁球示例
- 9.2 伪随机数
- 9.3 自顶向下的设计
- 9.4 自底向上的实现
- 小结
- 知识拓展 Python编辑工具——Jupyter Notebook
- 名人小故事 破解MD5 算法的女强人——王小云
- 二级考试对应知识点
- 习题
- 第 10 章 类与对象
- 10.1 对象
- 10.2 自定义的类——模拟炮弹示例
- 10.3 定义新类
- 10.4 用类处理数据
- 10.5 对象和封装
- 10.6 控件
- 10.7 示例:炮弹动画
- 小结
- 知识拓展 Python工具——Skulpt
- 名人小故事 中国互联网运动的先锋——王志东
- 二级考试对应知识点
- 习题
- 第 11 章 面向对象设计
- 11.1 面向对象设计的过程
- 11.2 类和实例
- 11.3 数据封装
- 11.4 访问限制
- 11.5 继承和多态
- 11.6 获取对象信息
- 11.7 实例属性和类属性
- 11.8 案例研究:壁球模拟
- 小结
- 知识拓展 Python开发社区
- 科技创新 华为公司
- 二级考试对应知识点
- 习题
- 第 12 章 Python库及计算生态
- 12.1 标准库
- 12.2 第三方库
- 12.3 Python计算生态
- 小结
- 知识拓展 Python第三方库纵览
- 二级考试对应知识点
- 习题
FAQ
Can readers with no programming background understand this book?
What is the relationship between the cases in the book and the exam test points?
What level can I reach after finishing this book?
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
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.
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.
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.