Learning Python (4th Edition)
Tags
Summary
Editor's review
Who it's for
A good fit for
- 希望系统掌握 Python 语法、而不只是会写脚本的自学者
- 有其他语言基础、想弄清 Python 对象模型与运行机制的开发者
- 在校学生或培训学员,需要一本与课程配套的完整教材
- 准备面试或考试、需要系统梳理 Python 语言细节的读者
Not a good fit for
- 只想一两周速成、马上做出项目的人,本书篇幅与节奏偏慢
- 主要想做数据分析、Web 开发、爬虫等应用的人,本书几乎不讲这些框架
- 零基础且对编程完全陌生、需要大量图示引导的读者,本书文字密度较高
Reading tips
- 按第一到第七部分的顺序通读,每读完一部分就完成该部分练习,并对照附录B核对。
- 边读边在 Python 3 解释器里验证示例,遇到与当前版本不符的语法,以官方文档为准。
- 翻译表述拗口的地方先对照英文原版章节,再去查官方教程和语言参考。
- 第八部分(Unicode、属性、装饰器、元类)可先略读,等有了项目经验再回看。
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
- Part I: Getting Started
- Chapter 1: A Python Q&A Session
- Chapter 2: How Python Runs Programs
- Chapter 3: How You Run Programs
- Part II: Types and Operations
- Chapter 4: Introducing Python Object Types
- Chapter 5: Numeric Types
- Chapter 6: The Dynamic Typing Interlude
- Chapter 7: String Fundamentals
- Chapter 8: Lists and Dictionaries
- Chapter 9: Tuples, Files, and Everything Else
- Part III: Statements and Syntax
- Chapter 10: Introducing Python Statements
- Chapter 11: Assignments, Expressions, and Prints
- Chapter 12: if Tests and Syntax Rules
- Chapter 13: while and for Loops
- Chapter 14: Iterations and Comprehensions, Part 1
- Chapter 15: Documentation
- Part IV: Functions
- Chapter 16: Function Basics
- Chapter 17: Scope
- Chapter 18: Arguments
- Chapter 19: Advanced Function Topics
- Chapter 20: Iterations and Comprehensions, Part 2
- Part V: Modules
- Chapter 21: Modules: The Big Picture
- Chapter 22: Module Coding Basics
- Chapter 23: Module Packages
- Chapter 24: Advanced Module Topics
- Part VI: Classes and OOP
- Chapter 25: OOP: The Big Picture
- Chapter 26: Class Coding Basics
- Chapter 27: More Example Classes
- Chapter 28: Class Coding Details
- Chapter 29: Operator Overloading
- Chapter 30: Designing with Classes
- Chapter 31: Advanced Class Topics
- Part VII: Exceptions and Tools
- Chapter 32: Exception Basics
- Chapter 33: Exception Coding Details
FAQ
这本书讲的是 Python 2 还是 Python 3?
零基础可以直接读这本书吗?
书里的练习题有答案吗?
第四版和第五版该买哪个?
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.