Python Core Programming: From Beginner to Real-World Development cover

Python Core Programming: From Beginner to Real-World Development

No rating yet
Word count
375 words
Chapters
18
ISBN
9787121357053

Tags

Summary

This is a Python tutorial for beginners and those new to programming, structured as a progression from basic knowledge to core techniques to advanced applications to industry practice, in 16 chapters. The opening chapters begin with Python's origins, strengths and weaknesses, and application areas, then walk step by step through installing and running the interpreter on Windows, Linux, and macOS, and configuring and using PyCharm. They then cover basic syntax elements, operators and expressions, data types, built-in arithmetic functions, the three control structures (sequence, branch, loop), functions and parameter passing, recursion, and scope. The intermediate part covers composite data types such as lists, tuples, sets, and dictionaries; opening, reading, writing, and directory operations for files and file systems; regular expressions and the re module; processes and threads; and Python interfaces for relational, non-relational, and embedded databases. The web section introduces the Flask and Django frameworks, while the visualization section introduces NumPy and matplotlib and demonstrates cases such as hand-drawn-style images, polar plots, and stock candlestick charts. The final part explains GUI programming and layout management with PyQt 5 and then fully breaks down four comprehensive projects: a Pygame scoring game catching a bouncing ball, an intelligent poetry-writing program, a face recognition system, and a weather forecasting visualization system, covering requirements analysis, system design, implementation, and results. The code in the book is annotated, making it suitable for readers who want to ground syntax learning in a real development workflow.

Editor's review

市面上打着“从入门到实战”旗号的 Python 书不少,但这本书的路线图相对完整:前六章把环境搭建、语法、流程控制、函数和容器讲到能上手写代码,第 7 至 11 章补齐正则、并发、数据库、Web 框架和数据可视化这几块实际开发绕不开的内容,最后四章用 Pygame 游戏、智能写诗、人脸识别、天气预测四个项目做收口,每一章都有需求分析、系统设计和代码实现的完整链路,读者能照着走一遍开发流程。 对零基础读者来说,本书的安装章节覆盖 Windows、Linux、macOS 三个平台,还专门讲了 PyCharm 的配置,开始动手时不容易卡在第一步。书中案例代码带注释,并配有讲解 Python 常用库的使用方法,适合当作边读边敲的练习册。需要提醒的是,本书 2020 年出版,使用的是当时较流行的库版本与写法,例如 Flask、Django、PyQt 5 如今的部分 API 已有更新,照书操作时建议对照官方文档调整。全书的定位更偏“跟着做完能跑通的项目型入门”,想深入语言特性和工程规范,还需配合其他资料。

Who it's for

A good fit for

  • 零编程基础、希望系统自学 Python 的在校学生与转行读者
  • 学过一点语法但没做过完整项目、想走通开发流程的自学者
  • 需要一本含 Flask/Django、数据库、PyQt5 内容的实践型教材的培训学员
  • 想用 Pygame、NumPy、matplotlib 做小项目练手的技术爱好者

Not a good fit for

  • 已有多年 Python 工程经验、想深入 CPython 底层或性能优化的资深开发者
  • 只想查语法手册、不愿动手敲代码的读者
  • 需要严格对齐最新 Python 3.12+ 与新版框架 API 的读者

Reading tips

  1. 按章节顺序推进,先配好环境再学第 2、3 章语法,每章末尾的上机与练习不要跳过
  2. 读到第 9 至 12 章时同步搭建数据库与虚拟环境,边学边把书中代码跑通
  3. 最后四个实战项目建议独立复现一遍,遇到报错优先查官方文档,理解版本差异
  4. 把本书当作 2020 年前后的技术快照,框架与库的新写法以官方文档为准

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. Title: Python Core Programming: From Beginner to Real-World Development
  2. Chapter 0 Python Study Guide: Python's Origins, Basic Ideas and Technical System, Learning Roadmap, Comparison with Other Languages, Development Trends and Application Status
  3. Chapter 1 Getting to Know Python: Entering Python, Setting Up the Development Environment, Installing the Interpreter and PyCharm
  4. Chapter 2 Quickly Using Python Programming: Basic Syntax Elements, Comments and Code Structure, Operators and Expressions, Data Types, Built-in Arithmetic Functions
  5. Chapter 3 Controlling Program Execution Flow: Structured Programming, Sequential Structure, Branch Structure, Loop Structure
  6. Chapter 4 Using Functions in Python: Function Definition and Basic Use, Parameter Passing, Variable Scope, Recursion, Function Modules
  7. Chapter 5 Composite Data Types: Sequences, Lists, Tuples, Sets, Dictionaries
  8. Chapter 6 Files and File Systems: Opening and Closing Files, File and Directory Operation Modules, Common Directory and File Operations
  9. Chapter 7 Regular Expressions: Basic Metacharacters, Common Functions of the re Module, Group Matching and Match Objects
  10. Chapter 8 Program Processes and Threads: Processes, Threads
  11. Chapter 9 Python Database Operations: Database Interfaces and APIs, Relational Databases, Non-Relational Databases, Embedded Databases
  12. Chapter 10 Web Programming Technology: Flask Framework, Django Framework
  13. Chapter 11 Python Visualization Programming: NumPy Library, Hand-Drawn Image Effects, matplotlib Library, Drawing Polar Plots and Stock Candlestick Charts
  14. Chapter 12 GUI Programming Based on PyQt 5: Overview of GUI, Introduction and Installation of PyQt, Getting Started with Qt Designer, Window Controls and Layout Management
  15. Chapter 13 Developing an Interactive Game with Python: Introduction and Installation of Pygame, Creating and Optimizing the Bouncing-Ball Scoring Game
  16. Chapter 14 Intelligent Robot—Intelligent Poetry Writing with Python: System Design, Window UI Design, Third-Party Libraries, Program Implementation and Results
  17. Chapter 15 Artificial Intelligence—Face Recognition System: Requirements Analysis, System Design, Development Preparation, Feature Implementation
  18. Chapter 16 Data Visualization—Weather Forecasting System: Requirements Analysis, System Design, Module Introduction, Feature Implementation and Data Storage

FAQ

这本书适合完全零基础的读者吗?
适合。第 1 章从 Python 的优缺点、应用领域和三个平台的安装讲起,第 2、3 章覆盖语法元素与控制结构,不需要预先掌握其他语言。不过全书节奏较快,零基础读者建议配合练习多敲代码。
书中用的是 Python 3 还是 Python 2?
从章节设置看(print 输出、PyQt 5、Flask/Django 等),本书面向 Python 3 编写。具体版本号建议以书内安装章节所述为准,练习时用当前 Python 3 一般可以运行大部分示例。
全书共多少章、总字数是多少?
全书共 16 章,另有第 0 章学习指南。出版社书目信息标注为 375 千字,开本 16 开,定价 79 元。
这本书和《Python编程:从入门到实践》是一本吗?
不是。本书作者为朱红庆,由电子工业出版社 2020 年出版,ISBN 9787121357053;《Python编程:从入门到实践》是埃里克·马瑟斯所著的另一本书,两者内容体系与项目案例不同,选购时请注意区分。
书中的实战项目有哪些?
第 13 至 16 章依次为使用 Pygame 开发接弹球计分游戏、利用 Python 智能写诗、人脸识别系统和天气预测数据可视化系统,每个项目都包含需求分析、系统设计与代码实现。

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.

More by the same author

Top rated in the same category