Python for Everyone, 2nd Edition (Chinese Translation) cover

Python for Everyone, 2nd Edition (Chinese Translation)

No rating yet
Word count
320K words
Chapters
15
Series
Computer Science Series
ISBN
9787111611479

Tags

Summary

This book is the Chinese translation of Python for Everyone, 2nd Edition, published by Wiley. It offers a systematic introduction to Python 3 programming for readers with no prior programming experience. The book is organized around a "concepts first, then hands-on problem solving" approach: it begins with the basic concepts of computer programs and computation, the origins of the Python language, and setting up a programming environment; then moves from variables, numbers, strings, and arithmetic to selection structures, loops, function design, lists and tables, files and exceptions, sets and dictionaries, objects and classes, inheritance, and recursion, culminating in sorting and searching algorithms and analysis of their running times. Unlike a typical syntax reference, this book threads "problem solving" through every chapter: algorithm design and flowcharts, test case design, hand tracing, storyboards, stepwise refinement, and reusable functions are all presented through fully worked step-by-step examples, guiding readers from requirements to a runnable solution. The book also features a graphics and image processing strand, using drawing, image filtering, reconstruction, and building an image processing toolkit to make abstract concepts visual; "toolbox" sections introduce practical libraries such as SymPy, CSV files, web pages and JSON data, and statistics and charts, accompanied by interdisciplinary programming exercises. Each chapter ends with a chapter summary, review questions, and programming exercises, making the book suitable for classroom use and self-study assessment. The second edition fully adopts Python 3 and refines the overall structure, making it suitable both as a textbook for a university's first programming course and for self-learners working through the chapters in order.

Editor's review

本书由《Java核心技术》作者 Cay Horstmann 与 Rance Necaise 合著,是 Wiley 广受欢迎的 Python 入门教材《Python for Everyone》第2版的中文版,由国内长期从事 Python 教学与写作的董付国翻译,中文表达顺畅,术语统一。 它的难得之处在于「教材的严谨」与「读物的可读」兼得:语言基础讲得细,变量、运算、字符串方法、格式化输出都配有可运行示例;概念推进有序,先会用对象、再学写类,不会一上来就被面向对象吓退;问题解决部分尤其扎实,流程图、测试用例、手工跟踪、故事板、逐步提炼等方法被拆成可操作的步骤,读者学到的不是语法点,而是把问题拆解成程序的能力。图形与图像处理、集合与字典的复杂结构、排序算法的运行时间估计等内容,又把入门书的上限抬高了一截。 每章的自测题、复习题与编程练习数量充足,教师可直接用于布置作业,自学者也能据此检验掌握程度。随书可下载全部示例源代码与配套资源。

Who it's for

A good fit for

  • 高校计算机及相关专业把 Python 作为第一门程序设计课的本科生、研究生
  • 零基础或只零散用过 Python、希望系统补齐语法与编程思维的读者
  • 需要讲授程序设计课、寻找结构完整且例题丰富的教材的高校教师与培训机构讲师
  • 有 Java、C 等语言基础,想通过一本严谨教材转学 Python 3 的程序员

Not a good fit for

  • 想直接学数据分析、机器学习、爬虫或 Web 框架等应用方向、不打算打语法基础的人
  • 已熟练使用 Python、希望了解语言底层实现或 CPython 源码的进阶开发者
  • 习惯照着视频抄代码、不愿意做章末练习的速成型读者

Reading tips

  1. 按章节顺序阅读,认真完成每章的自测题与编程练习,书中方法类内容只看不练很难吸收。
  2. 动手前先在纸上写清输入、输出与步骤,再对照书中的流程图、测试用例练习问题解决过程。
  3. 学完第6章列表与第9章对象后,建议回头把一个早先写过的程序重写为函数与类版本,体会抽象带来的改变。
  4. 教师可将第11、12章的递归与排序搜索作为选读或进阶专题,配合工具箱小节布置跨学科练习。

About the publisher

China Machine Press China · Founded in 1950

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. Publisher's Note
  2. Translator's Preface
  3. Preface
  4. Chapter 1 Introduction (Computer Programs, Anatomy of a Computer, The Python Programming Language, Becoming Familiar with the Programming Environment, Analyzing Your First Program, Errors, Problem Solving: Algorithm Design)
  5. Chapter 2 Programming with Numbers and Strings (Variables, Arithmetic Operations, Problem Solving: First Do It By Hand, Strings, Input and Output, Graphics: Simple Drawings)
  6. Chapter 3 Decisions (The if Statement, Relational Operators, Nested Branches, Multiple Alternatives, Flowcharts, Test Cases, Boolean Variables and Operators, Analyzing Strings, Input Validation)
  7. Chapter 4 Loops (The while Loop, Hand Tracing, Sentinel Values, Storyboards, Common Loop Algorithms, The for Loop, Nested Loops, Processing Strings, Random Numbers and Simulations, Digital Image Processing)
  8. Chapter 5 Functions (Functions as Black Boxes, Implementing and Testing Functions, Parameter Passing, Return Values, Reusable Functions, Stepwise Refinement, Variable Scope, The Image Processing Toolkit, Recursive Functions (Optional))
  9. Chapter 6 Lists (Basic Properties of Lists, List Operations, Common List Algorithms, Using Lists with Functions, Adapting Algorithms, Tables)
  10. Chapter 7 Files and Exceptions (Reading and Writing Text Files, Text Input and Output, Command-Line Arguments, Binary Files and Random Access (Optional), Exception Handling, Handling Input Errors)
  11. Chapter 8 Sets and Dictionaries (Sets, Dictionaries, Complex Structures)
  12. Chapter 9 Objects and Classes (Object-Oriented Programming, Implementing a Simple Class, Specifying the Public Interface of a Class, Designing Data Representations, Constructors, Implementing Methods, Testing a Class, Tracing Objects, Patterns for Object Data, Object References, The Fraction Class)
  13. Chapter 10 Inheritance (Inheritance Hierarchies, Implementing Subclasses, Calling the Superclass Constructor, Overriding Methods, Polymorphism, A Geometric Shapes Class Hierarchy)
  14. Chapter 11 Recursion (Triangle Numbers Revisited, Thinking Recursively, Recursive Helper Functions, The Efficiency of Recursion, Permutations, Backtracking, Mutual Recursion)
  15. Chapter 12 Sorting and Searching (Selection Sort and Its Analysis, Merge Sort and Its Analysis, Linear Search, Binary Search, Estimating the Running Time of Algorithms)

FAQ

这本书需要先学其他编程语言吗?
不需要 prerequisite,全书从「什么是计算机程序」讲起,默认读者零编程基础,因此作为第一门程序设计课教材或自学入门书都合适。
中文版和英文原版内容一致吗?
中文版译自 Wiley 出版的《Python for Everyone》第2版(ISBN 9781119056553),章节结构与原书对应,全书 12 章并含图形与工具箱内容。
书中的代码用哪个 Python 版本?
第2版明确基于 Python 3 编写,并对全书结构做了优化;建议在 Python 3 环境下运行书中示例,随书提供示例源代码下载。
和董付国自己写的《Python程序设计》是同一本书吗?
不是。董付国在本书中担任译者;他编著的《Python程序设计(第2版)》由清华大学出版社出版,两者作者不同,购买时请核对 ISBN 9787111611479。
这本书适合考研或找工作的面试准备吗?
书中覆盖列表、字典、面向对象、递归、排序与搜索等基础考点,可作为打基础的材料,但不涉及算法竞赛、系统设计或大规模工程实践,需另外补充。

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