Hello! Python
Tags
Summary
The book has 14 chapters, covering basic Python syntax, data types and operations, control flow statements, functions and modules, object-oriented programming, exception handling, file and network operations, as well as GUI programming, database programming, and multithreaded programming.
Each chapter includes a summary and extension section, synchronized exercises, and several training camps designed to consolidate knowledge through comprehensive cases. The book also provides accompanying code, courseware, Q&A support, and videos to assist learning (download instructions are on the back cover).
The table of contents uses humorous names and explains knowledge through comic character dialogues to attract readers' interest.
Whether you are a programming novice or an experienced programmer, this book will help you master practical Python skills in an accessible way. As long as you study patiently and practice, you will gain a lot. Now please begin your Python programming journey!
Editor's review
Who it's for
A good fit for
- Programming novices who want to self-study Python from zero
- Beginners who need a classroom companion textbook
- Self-learners who want to consolidate syntax with cases
- Readers who want a quick overview of common Python application areas
Not a good fit for
- Developers with extensive experience who want to study low-level mechanisms in depth
- Readers focused on algorithm competitions or high-performance computing
- People who only want to read theory and are unwilling to write code
Reading tips
- Read chapters in order; first run the sample code for each chapter, then complete the synchronized exercises independently.
- Treat the training camp cases as small projects: write them yourself first, then revise by comparing with the accompanying code.
- When you hit an error, read the exception message first and try to locate the issue, then consult the exception handling chapter in the book.
- After learning file, network, GUI, database, and multithreading topics, choose one direction for a small project to connect the knowledge.
About the publisher
In addition to science and technology and professional publishing, the books in our catalog from China Machine Press also reflect a sustained focus on psychology, computing, management, finance and economics, and social sciences. In psychology, the catalog includes works by C. G. Jung and introductions to analytical psychology, as well as applied topics such as stress and health, and addiction and healing. In computing, it features Structure and Interpretation of Computer Programs (JavaScript Edition). Management and finance titles include Administrative Behavior (4th Edition), The Price of Inequality (Collector's Edition), and This Time Is Different: Eight Centuries of Financial Folly (Commemorative Edition). In the philosophy and history of science, there is The Worldview: The Third Edition. Relevant authors include C. G. Jung, William McGuire, Sonu Shamdasani, and Gabor Maté. Public information is limited; the above summarizes the publisher's profile based solely on the books in our catalog.
Contents
- 版权信息
- 前言
- 第1章 你好,世界!我是Python!——从Hello World开始
- 1.1 编写你的第一个Python程序
- 1.2 使用PyCharm工具
- 1.3 Python语言概述
- 1.4 Python语言应用前景
- 1.5 如何获得帮助
- 1.6 总结与扩展
- 1.7 同步练习
- 第2章 魔法师的咒语书——Python基本语法
- 2.1 标识符和关键字
- 2.2 编程基础知识
- 2.3 训练营:理解变量和语句
- 2.4 Python代码组织方式
- 2.5 总结与扩展
- 2.6 同步练习
- 第3章 以数据之名,激荡人心——Python数据类型
- 3.1 基本数据类型
- 3.2 训练营1:基本数据类型
- 3.3 高级数据类型
- 3.4 总结与扩展
- 3.5 同步练习
- 第4章 我快乐,我自由!——运算符
- 4.1 算术运算符
- 4.2 关系运算符
- 4.3 逻辑运算符
- 4.4 训练营1:熟悉算数运算符、关系运算符和逻辑运算符
- 4.5 位运算符
- 4.6 训练营2:熟悉位运算符
- 4.7 赋值运算符
- 4.8 总结与扩展
- 4.9 同步练习
- 第5章 让代码通透你的心——决策语句
- 5.1 if语句
- 5.2 训练营:掌握if语句
- 5.3 总结与扩展
- 5.4 同步练习
- 第6章 编织代码的舞者——循环语句
- 6.1 while语句
- 6.2 训练营1:掌握while语句
- 6.3 for语句
- 6.4 训练营2:掌握for语句
- 6.5 break语句
- 6.6 训练营3:掌握break语句
- 6.7 continue语句
- 6.8 训练营4:掌握continue语句
- 6.9 总结与扩展
- 6.10 同步练习
- 第7章 一个人的独角戏,一群人的协奏曲——函数
- 7.1 用户自定义函数
- 7.2 函数参数
- 7.3 函数变量作用域
- 7.4 匿名函数与lambda函数
- 7.5 训练营1:熟悉匿名函数
- 7.6 生成器
- 7.7 训练营2:了解生成器
- 7.8 高阶函数
- 7.9 总结与扩展
- 7.10 同步练习
- 第8章 唯美的艺术——面向对象
- 8.1 声明类
- 8.2 封装性
- 8.3 继承性
- 8.4 多态性
- 8.5 总结与扩展
- 8.6 同步练习
- 第9章 捉虫大队行动中——异常处理
- 9.1 异常类继承层次
- 9.2 处理异常
- 9.3 释放资源
- 9.4 显式抛出异常
- 9.5 总结与扩展
- 9.6 同步练习
- 第10章 掌握文件才能侃侃而谈——文件访问
- 10.1 访问文件
- 10.2 总结与扩展
- 10.3 同步练习
- 第11章 在视觉与交互的海洋中游泳——GUI编程
- 11.1 GUI开发工具包概述
- 11.2 编写第一个Tkinter程序
- 11.3 布局管理
- 11.4 常用控件
- 11.5 训练营2:熟悉布局管理
- 11.6 总结与扩展
- 11.7 同步练习
- 第12章 畅游信息的海洋——网络编程
- 12.1 网络基础
- 12.2 Python网络编程库
- 12.3 训练营1:下载图片
- 12.4 JSON数据交换格式
- 12.5 训练营2:编码所有“备忘录”信息
- 12.6 总结与扩展
- 12.7 同步练习
- 第13章 用数据解析你我的故事——数据库编程
- 13.1 MySQL数据库管理系统
- 13.2 编写Python程序访问MySQL数据库
- 13.3 训练营:学生表CRUD操作
- 13.4 总结与扩展
- 13.5 同步练习
- 第14章 拥抱变幻无常的世界——多线程编程
- 14.1 创建线程
- 14.2 等待线程结束
- 14.3 线程同步
- 14.4 总结与扩展
- 14.5 同步练习
FAQ
I have never learned programming at all. Can I understand this book?
What Python application areas does the book cover?
Are there accompanying resources? How should I use them?
Will the humorous table of contents naming affect learning?
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
Guan Dongsheng, born in December 1973, is a Chinese mobile development expert, CTO, IT author, founder and chief training expert of Zhijie Classroom, a Cocos Most Valuable Professional (CVP), and a senior lecturer at 51CTO Academy. Proficient in iOS, Android, Python and related technologies, he has participated in projects such as the Beijing public transit card and has written more than fifty technical books, including the iOS Development Guide and Python from Beginner to Expert. His writing focuses on programming fundamentals and practical application. Recent works cover the use of Python, MATLAB and R for scientific plotting and academic charts, as well as AI-era topics such as financial big-data analysis and quantitative trading with tools like ChatGPT and DeepSeek. He often uses comics and full-color illustrations to lower the barrier to learning, balancing interest with practicality.