Python Programming cover

Python Programming

Rating 3.0
Word count
88K words
Chapters
41
ISBN
9787568930178

Tags

Summary

This textbook is written against the professional competency requirements of programming positions, aims to develop students' algorithm design skills, adheres to the philosophy of "learning by doing," and is structured around case analysis. After completing this textbook, students will have mastered the basic syntax of the Python language, be able to write Python programs to solve simple problems, and have developed preliminary algorithmic thinking, laying a foundation for subsequent courses.

Editor's review

Published by Chongqing University Press and authored by Cen Yuanhong, Python Programming is an introductory programming textbook that reflects a solid foundation in teaching practice. Using Python 3.x as its primary teaching version, the book begins with basic syntax and data types, gradually progresses to core concepts such as functions, object-oriented programming, and file operations, and finally covers advanced topics including network programming and database operations, forming a relatively complete knowledge system.

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

  1. It is recommended to read the chapters in order and to complete the exercises carefully after each chapter to consolidate learning
  2. Be sure to practice the code examples in the book hands-on while reading; understanding is more important than memorization
  3. 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 China · Founded in 1985

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

  1. 版权信息
  2. 前言
  3. 项目一 初识Python程序
  4. 任务一 安装软件
  5. 任务二 运行一个简单的Python程序
  6. 项目二 操作基本类型数据
  7. 任务一 处理数值型数据
  8. 任务二 处理字符串数据
  9. 项目三 控制程序执行流程
  10. 任务一 使用分支结构
  11. 任务二 使用循环结构
  12. 项目四 操作组合类型数据
  13. 任务一 处理列表
  14. 任务二 处理字典
  15. 任务三 处理集合
  16. 项目五 使用函数实施模块化程序设计
  17. 任务一 自定义函数
  18. 任务二 使用局部函数和递归函数
  19. 任务三 使用函数修饰器
  20. 项目六 应用面向对象思想设计程序
  21. 任务一 自定义类
  22. 任务二 使用继承重用代码
  23. 任务三 处理程序执行异常
  24. 项目七 操作文件
  25. 任务一 处理文件和文件夹
  26. 任务二 读写文件
  27. 项目八 使用进程和线程并行执行
  28. 任务一 使用线程提高程序执行速度
  29. 任务二 使用进程并行执行程序
  30. 项目九 访问数据库
  31. 任务一 创建与查询数据库
  32. 任务二 维护数据库中的数据
  33. 项目十 使用正则表达式处理文字
  34. 任务一 使用量词
  35. 任务二 使用捕获组
  36. 任务三 使用断言和标记
  37. 项目十一 调试和优化程序
  38. 任务一 单元测试
  39. 任务二 调试程序
  40. 任务三 优化程序
  41. 参考文献

FAQ

Is this book suitable for someone who has never been exposed to programming?
It is very suitable. The book starts from the most basic programming concepts, proceeds step by step, and is rich in cases; it is an introductory textbook designed for readers with no prior foundation.
Is the code in the book based on Python 2 or Python 3?
The book uses Python 3.x as its primary teaching environment, and the code and syntax explanations in the book are all based on Python 3.
What level can I reach after finishing this book?
After finishing this book, you will have mastered the core syntax of Python and object-oriented programming concepts, be capable of using Python to solve general programming problems, and have laid a solid foundation for further study in areas such as data analysis and web development.

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

岑远红 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 Author · Chinese · 1979

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.

李巧玲 Author

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.

武春岭 Author

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.

More by the same author

Top rated in the same category