Python Programming Development Case Tutorial (2nd Edition)
Tags
Summary
This book is suitable as a textbook for computer science and other engineering majors in higher education institutions, and can also serve as an auxiliary textbook or self-study reference book for programmers and self-learners.
Editor's review
Who it's for
A good fit for
- Students in computer science and related engineering majors at universities, using it as a Python course textbook or exercise workbook
- Programming self-learners with basic syntax needs who want systematic chapter-by-chapter practice and hands-on coding
- Learners preparing to move into web development who want an introduction to backend development through a Django project
- Trainees in training programs who need a Python teaching book rich in examples for guided practice
Not a good fit for
- Complete beginners with no computer background who need to start from operating systems and typing
- Readers who only want to quickly look up a specific syntax point and do not need a systematic learning path
- Experienced Python developers seeking in-depth framework source code or advanced architecture design
Reading tips
- Proceed chapter by chapter; read the concepts first and then type out all examples yourself, avoiding reading without practicing.
- Before learning Django, complete the exercises in earlier chapters to ensure a solid foundation in functions, classes, and databases.
- For the project section, it is recommended to rewrite the code independently first, then compare with the book's implementation to fill gaps.
- After each chapter, self-test with a small feature and organize errors into notes for repeated practice.
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章 开启Python学习之旅
- 1.1 Python概述
- 1.2 搭建Python开发环境
- 1.3 快速开发Python程序
- 1.4 实例1:打印购物小票
- 1.5 实例2:打印功能菜单
- 小结
- 习题
- 第2章 数字类型与字符串
- 2.1 数字类型
- 2.2 运算符
- 2.3 经典实例
- 2.4 字符串
- 2.5 类型转换
- 小结
- 习题
- 第3章 流程控制
- 3.1 条件语句
- 3.2 条件嵌套
- 3.3 循环语句
- 3.4 循环嵌套
- 3.5 跳转语句
- 小结
- 习题
- 第4章 列表与元组
- 4.1 认识列表
- 4.2 列表的遍历和排序
- 4.3 添加、删除和修改列表元素
- 4.4 嵌套列表
- 4.5 认识元组
- 小结
- 习题
- 第5章 字典和集合
- 5.1 认识字典
- 5.2 字典的基本操作
- 5.3 集合的创建方式
- 5.4 集合操作与操作符
- 小结
- 习题
- 第6章 函数
- 6.1 函数的定义与调用
- 6.2 函数的参数传递
- 6.3 变量作用域
- 6.4 函数的特殊形式
- 6.5 常用的内置函数
- 小结
- 习题
- 第7章 类与面向对象
- 7.1 面向对象
- 7.2 类与对象
- 7.3 构造方法
- 7.4 类方法和静态方法
- 7.5 实例1:航天器信息查询工具
- 7.6 继承
- 7.7 实例2:人机猜拳游戏
- 7.8 多态
- 小结
- 习题
- 第8章 模块
- 8.1 模块概述
- 8.2 自定义模块
- 8.3 模块的导入特性
- 8.4 Python的包
- 8.5 第三方模块的下载与安装
- 8.6 实例1:验证码
- 8.7 实例2:文本进度条
- 8.8 实例3:高考倒计时器
- 小结
- 习题
- 第9章 文件与文件路径操作
- 9.1 文件的打开和关闭
- 9.2 从文件中读取数据
- 9.3 向文件写入数据
- 9.4 文件的定位读/写
- 9.5 文件的备份与重命名
- 9.6 目录操作
- 9.7 文件路径操作
- 9.8 实例3:用户登录
- 小结
- 习题
- 第10章 错误和异常
- 10.1 错误和异常概述
- 10.2 捕获与处理异常
- 10.3 抛出异常
- 10.4 自定义异常
- 10.5 with语句
- 10.6 实例:身份归属地查询
- 小结
- 习题
- 第11章 正则表达式
- 11.1 基础知识
- 11.2 re模块
- 11.3 预编译
- 11.4 匹配与搜索
- 11.5 匹配对象
- 11.6 全文匹配
- 11.7 检索替换
- 11.8 实例2:电影信息提取
- 11.9 文本分割
- 11.10 贪婪匹配
- 11.11 实例3:用户注册验证
- 小结
- 习题
- 第12章 进程和线程
- 12.1 进程概述
- 12.2 进程的创建方式
- 12.3 进程间通信
- 12.4线程的概念
- 12.5 线程的基本操作
- 12.6 线程锁
- 12.7 线程同步
- 12.8 实例:生产者与消费者模式
- 小结
- 习题
- 第13章 网络编程
- 13.1 网络概述
- 13.2socket网络编程基础
- 13.3 基于UDP的网络聊天室
- 13.4 基于TCP的数据转换
- 13.5 实例2:TCP文件下载
- 13.6 TCP并发服务器
- 小结
- 习题
- 第14章 数据库编程
- 14.1 数据库基础知识
- 14.2 MySQL与Python交互
- 14.3 MongoDB与Python交互
- 14.4 Redis与Python交互
- 14.5 实例:用户注册与登录
- 小结
- 习题
- 第15章 Django框架入门
- 15.1 Web开发基础知识
- 15.2 初识Django框架
- 15.3 搭建Django环境
- 15.4 创建第一个Django项目
- 15.5 Django架构之MTV
- 小结
- 习题
- 第16章 Django核心组件详解
- 16.1 路由系统
- 16.2 模型
- 16.3 模板
- 16.4 视图
- 16.5 实例:用户登录
- 小结
- 习题
- 第17章 项目实战——天天生鲜
- 17.1 项目页面展示
- 17.2 项目需求分析
- 17.3 前期准备工作
- 17.4 首页功能实现
- 17.5 商品详情页面功能实现
- 17.6 商品分类页面功能实现
- 17.7 购物车页面功能实现
- 17.8 订单提交页面功能实现
- 17.9 订单提交成功页面功能实现
- 小结
FAQ
What background do I need to start learning from this book?
Is the project in the book suitable for direct use as a job-seeking portfolio piece?
Each chapter has many examples; how should I arrange my learning pace if time is limited?
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
Heima Programmer is an IT education brand and textbook-writing team under Itcast (Chuanzhi Education), initiated by Zhang Xiaoxiang. It has long focused on developing practical textbooks in areas such as Java, Python, front-end development, and big data, with many of its works published by Posts & Telecom Press. As a collectively credited author, Heima Programmer is not a single individual but a writing team centered on teaching and course development, and its works emphasize hands-on practice and project-driven learning. The library contains 26 of its titles, including representative works such as Software Testing, Modern Methods of Python Programming, Fundamentals of Microservice Architecture (Spring Boot+Spring Cloud+Docker), Java Web Programming Task Tutorial, JavaScript Front-End Development Case Tutorial, Web Design and Production Project Tutorial (HTML+CSS+JavaScript), PHP Basic Case Tutorial, and Java EE Enterprise Application Development Tutorial (Spring+Spring MVC+MyBatis). These works cover categories such as programming design, software learning, computer fundamentals, and examinations. Its writing style relies on cases and task guidance to serve IT learners at both introductory and advanced levels. Public information is limited, so no further biographical details are provided beyond the above.