Python 3: From Beginner to Practical cover

Python 3: From Beginner to Practical

No rating yet
Word count
684 words
Chapters
18
ISBN
9787121353567

Tags

Summary

This is an introductory Python textbook written by Dong Hongwei, published by the Publishing House of Electronics Industry in October 2019. It is part of the General Higher Education "13th Five-Year Plan" Textbook series, the New Engineering Education Path, and the Computer Science Major Planning Textbook series. The book is divided into two parts. Part One, "Python Syntax and Practice," begins with variables and objects, operators and expressions, control statements, functions, and built-in data types, then moves on to object-oriented features such as classes and objects, derived classes, instance methods and static methods, and introduces advanced syntax features including iterators and iterable objects, closures, decorators, @property, and deep and shallow copies, as well as input/output, errors and exceptions, and debugging. While explaining core syntax, it intersperses classic problems from fields such as binary search, bubble sort and selection sort, Floyd's shortest path, game programming, information management, machine learning and reinforcement learning as practical exercises. Part Two, "The Python Standard Library," introduces common standard library applications including operating system interface modules, time and date modules, regular expressions, concurrent computing, graphical user interface (GUI) programming, network socket programming, Internet application programming, and data persistence. Concise in explanation and rich in examples, the book serves both as a course textbook for university computer science programs and as a systematic introduction to Python 3 for self-motivated programming enthusiasts.

Editor's review

这是一本把语法、原理和实战串起来写的中文Python教材,而不是只罗列语法的速查手册。它的结构划分清晰:上篇按语言学习自身的顺序推进,从“计算机是什么、程序怎么运行”讲起,经过基本计算、函数、内置数据类型、面向对象、输入输出与异常,再进入闭包、装饰器、深拷贝与浅拷贝等进阶话题;下篇则把课堂里往往一笔带过的标准库单列出来,涵盖操作系统接口、时间日期、正则表达式、并发、GUI、套接字、Internet应用与数据持久化,学完即可动手写有实际功能的小程序。比较有特色的一点,是各章实战并非“打印乘法表”式练习,而是把二分查找、排序算法、最短路径、游戏编程、机器学习与强化学习等场景中的问题搬进语法教学,让读者在解决问题中理解特性。附录配有习题,每章均有小结,便于组织教学或自查。作为高校教材,它的章节划分与课时安排较为贴合,配套提供源代码、教学PPT与教学视频,也可作为自学读本使用。适合希望系统打牢Python 3基础、并搭好常用标准库知识框架的读者。

Who it's for

A good fit for

  • 计算机、软件工程等专业本科生或高职高专学生,可作为课程教材
  • 已会一门其他语言、想系统补齐Python 3语法与标准库的程序员
  • 希望从语法学习过渡到能独立写小工具的编程爱好者
  • 需要了解正则表达式、并发、网络与GUI等标准库用法的自学者

Not a good fit for

  • 只想快速上手数据分析或Web框架、不打算系统学语法的读者
  • 完全没有编程经验又缺乏指导、需要大量图解和分步带练的零基础读者
  • 希望以最新Python版本特性或工程实践为主的进阶开发者

Reading tips

  1. 建议按上篇章节顺序推进,每章先读概念再动手敲代码,切勿只看不练
  2. 把每章的实战案例(如二分查找、排序、最短路径)当作课后必做项目,独立重写一遍
  3. 下篇标准库不必通读,可结合自己需求挑模块精读,其余作为日后查阅的索引
  4. 练习时用Python 3解释器配合脚本文件两种方式交替,尽早熟悉调试与异常信息阅读

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. Part One Python Syntax and Practice
  2. Chapter 1 Introduction to Python
  3. Chapter 2 Basic Python Computation
  4. Chapter 3 Functions
  5. Chapter 4 Built-in Data Types
  6. Chapter 5 Object-Oriented Programming
  7. Chapter 6 Input/Output
  8. Chapter 7 Errors and Exceptions
  9. Chapter 8 Advanced Syntax Features
  10. Part Two The Python Standard Library
  11. Chapter 9 Common Modules of the Standard Library
  12. Chapter 10 Regular Expressions
  13. Chapter 11 Concurrent Computing
  14. Chapter 12 Graphical User Interface (GUI) Programming
  15. Chapter 13 Network Socket Programming
  16. Chapter 14 Internet Application Programming
  17. Chapter 15 Data Persistence
  18. References

FAQ

这本书适合零基础读者自学吗?
本书从“计算机是什么、程序如何运行”讲起,基础概念交代较完整,零基础读者可以自学;但它定位为高校教材,篇幅紧凑、习题导向,若完全没有编程经历,建议配合视频课程同步学习,遇到问题及时动手验证。
书中讲的是Python 2还是Python 3?
书名即为《Python3从入门到实战》,全书内容围绕Python 3展开,不涉及Python 2的语法兼容问题。书中为2019年前后写法,个别标准库模块的用法可能与当前新版本略有差异,练习时以官方文档为准。
包含哪些实战案例?
根据出版社与图书馆目录资料,核心语法部分融入了二分查找、冒泡排序与选择排序、Floyd最短路径算法、游戏编程、信息管理、机器学习与强化学习等领域的经典问题,用于演示语法如何解决实际问题;下篇则通过标准库模块示例练习正则、并发与网络编程等。
目录里提到第15章数据持久化,讲的是什么?
下篇第15章“数据持久化”属于标准库应用部分,介绍如何把程序中的数据保存下来供下次使用,涉及文件、序列化与数据库等常见方式,是全书把零散脚本变成可用程序的关键一章。
这本书有配套资源吗?
据电子工业出版社与华信教育资源网介绍,本书提供课程源代码与教学PPT,并配有教学视频、教学网站等资源,可在华信教育资源网(www.hxedu.com.cn)查询下载;具体可用资源以该网站当前页面为准。

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.

Top rated in the same category