Python Programming
Tags
Summary
Editor's review
From a pedagogical perspective, the book's highlight is its case-driven approach. Each important knowledge point is accompanied by corresponding example code, and most of these cases are close to real-world application scenarios, such as data analysis and web scraping, helping readers intuitively understand abstract concepts. The book also includes a suitable number of exercises to reinforce learning outcomes.
Compared with similar textbooks, this book strikes a balanced level of difficulty, avoiding both excessive brevity that leaves knowledge insufficiently deep and an overemphasis on comprehensiveness that intimidates beginners. Notably, the book emphasizes Python-specific programming style and best practices, which is highly beneficial for cultivating good programming habits.
It should be noted, however, that as a textbook, the book may lag slightly in covering the latest Python features; readers who wish to learn about the most cutting-edge developments in Python may need to consult the official documentation or other materials. Overall, this is a clearly structured and practical Python introductory tutorial, particularly suitable as a textbook for university programming courses or as systematic learning material for self-learners.
In terms of reading value, the book's greatest strengths lie in its step-by-step pedagogical logic and rich practical cases. Readers with no prior foundation can build a comprehensive understanding of Python programming by following the book's pace, while readers with some foundation can use its systematic organization to fill gaps in their knowledge. The explanations of object-oriented programming and exception handling are especially clear and warrant repeated study.
Who it's for
A good fit for
- Python beginners with no programming background who wish to learn programming systematically
- University students in computer-related majors who need a companion textbook for Python courses
- Working professionals engaged in data analysis, office automation, and similar fields who wish to master programming skills to improve work efficiency
- Middle school students or self-learners interested in programming who seek an introductory book with clear structure and abundant cases
Not a good fit for
- Readers who have already mastered core Python syntax and seek in-depth study of advanced topics such as machine learning or deep learning
- Practitioners who urgently need to solve problems in specific domains such as web development or game development and hope to quickly find ready-made solutions
Reading tips
- It is recommended to read the chapters in order and to complete the exercises carefully after each chapter to consolidate learning
- Be sure to practice the code examples in the book hands-on while reading; understanding is more important than memorization
- Use the official Python documentation and online programming communities as supplements to resolve problems encountered during study in a timely manner
About the publisher
Chongqing University Press is a comprehensive university press whose publishing areas span social and cultural studies, industrial technology, finance and economics, medicine, social psychology, and theory. Judging from its catalog, the press publishes both academic works and popular science titles. Representative books include E. H. Gombrich's Shadows: The Depiction of Cast Shadows in Western Art, Magnesium-Based Hydrogen Storage Materials by Pan Fusheng et al., Research on China's Regional Spatial Development Models by Sun Jiuwen, and titles from the Gynecologic Oncology Committee of the Chinese Anti-Cancer Association, such as the Guidelines for Diagnosis and Treatment of Common Gynecologic Malignancies in China (2019) and Bipolar Disorder: What You and Your Family Need to Know. Its authors work in art history, materials science, regional economics, clinical medicine, and social research methods. Public information is limited, but its publishing profile combines academic translation, industrial technology, and practical medical guides.
Contents
- 版权信息
- 前言
- 项目一 初识Python程序
- 任务一 安装软件
- 任务二 运行一个简单的Python程序
- 项目二 操作基本类型数据
- 任务一 处理数值型数据
- 任务二 处理字符串数据
- 项目三 控制程序执行流程
- 任务一 使用分支结构
- 任务二 使用循环结构
- 项目四 操作组合类型数据
- 任务一 处理列表
- 任务二 处理字典
- 任务三 处理集合
- 项目五 使用函数实施模块化程序设计
- 任务一 自定义函数
- 任务二 使用局部函数和递归函数
- 任务三 使用函数修饰器
- 项目六 应用面向对象思想设计程序
- 任务一 自定义类
- 任务二 使用继承重用代码
- 任务三 处理程序执行异常
- 项目七 操作文件
- 任务一 处理文件和文件夹
- 任务二 读写文件
- 项目八 使用进程和线程并行执行
- 任务一 使用线程提高程序执行速度
- 任务二 使用进程并行执行程序
- 项目九 访问数据库
- 任务一 创建与查询数据库
- 任务二 维护数据库中的数据
- 项目十 使用正则表达式处理文字
- 任务一 使用量词
- 任务二 使用捕获组
- 任务三 使用断言和标记
- 项目十一 调试和优化程序
- 任务一 单元测试
- 任务二 调试程序
- 任务三 优化程序
- 参考文献
FAQ
Is this book suitable for someone who has never been exposed to programming?
Is the code in the book based on Python 2 or Python 3?
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
Cen Yuanhong is a book author about whom limited public information is available. Two works by this author are currently known: Pandas Data Processing and Python Programming Design. Judging from the titles and the common classification of exam preparation, the writing is mainly aimed at programming study and test preparation. The content centers on the fundamentals of the Python language and the practical use of the data processing tool Pandas, making these books introductory and hands-on technical guides. Such works typically emphasize code examples and step-by-step explanations, helping readers practice chapter by chapter and meet the requirements of relevant exams or courses. Because the author's dates of birth and death, nationality, educational background, and professional experience are not clearly recorded, this introduction makes no speculation and merely summarizes the subject matter and purpose of the works based on in-house information, as a reference for readers choosing books.
Li Juan, born in 1979 in the Xinjiang Production and Construction Corps and with her ancestral home in Lezhi, Sichuan, is a contemporary Chinese woman writer. She began writing in 1999, and her works are mainly prose, though they also touch on subjects such as world history. Her representative works include My Altay, Winter Pasture, the three-volume Goat Trail trilogy (Spring Pasture, Front Mountain Summer Pasture, and Deep Mountain Summer Pasture), and Distant Sunflower Fields; 47 of her works are held in this collection. Her prose is mostly drawn from everyday life in the pastoral and farming areas of northern Xinjiang. Her plain style and careful observation reveal the texture and warmth of life in the borderlands through ordinary people and natural scenes. Her writing has had a broad influence on contemporary Chinese prose, and she received the Prose and Essay Award at the 7th Lu Xun Literary Prize. Public information about her education and specific personal experiences is limited; the above introduction is based mainly on her works and known literary achievements.
Li Qiaoling: currently, the publicly available information is limited, and her full biography, nationality, and educational background cannot be confirmed. Judging from the two works included in the database, Pandas Data Processing and Python Programming Design, she is an author active in the field of computer and data analysis teaching, writing for beginners and exam-preparation readers, with her books commonly classified under examinations. Her works center on the fundamentals of the Python language and pandas data processing, emphasizing clear explanations of programming concepts and step-by-step operations, so that readers can practice and review in an orderly way; they are highly practical and useful as introductory guides. Although little is known about the author's own background, these two books offer a clear learning path for readers studying Python programming and data analysis, and have thus attracted attention and been adopted in related examination and self-study contexts.
Wu Chunling is an author with published works in the field of computer books. Public information about him is currently limited, and details such as his nationality, education, professional positions, and dates of birth and death are not clearly recorded. Judging from the four works included in the database, his writing focuses on programming design and general computer applications. Representative works include Object-Oriented Programming (Java Edition), Pandas Data Processing, Network Interconnection Technology (Theory Volume), and Python Programming. These subjects cover common teaching areas such as object-oriented programming, data analysis, network interconnection, and introductory general-purpose programming, and are roughly aimed at university students and beginning programmers. His works also fall under exam-related categories, suggesting the content may serve both course study and exam preparation needs. Overall, his writing style tends toward textbook-style systematic explanation, combining basic concepts with practical operation, making the books suitable as supplementary reading for computer-related courses.