Python: Learn and Use It
Tags
Summary
Editor's review
Who it's for
A good fit for
- 有基础语法概念、想把 Python 用到数据分析与 Web 项目中的初学者
- 需要一门课带学生完成“语法+应用”闭环的高校教师与在校学生
- 做数据处理、报表与 Excel 自动化,希望了解 NumPy、pandas、PyTables 的工程人员
- 有 Java、C 等语言经验,想通过对照案例快速上手 Python 的程序员
Not a good fit for
- 完全零基础、需要大量练习与项目引导的纯新手,本书节奏偏快
- 追求最新 Python 3.11+ 特性与最新库版本的读者,书中示例较旧
- 寻找机器学习、深度学习算法原理的读者,本书不涉及模型与算法推导
Reading tips
- 按章顺序读,每章先吃透基础小节,再动手跑一遍对应的高级话题代码,形成“学一段用一段”的节奏。
- 先装好 Anaconda 环境,把书中 Python 2 与 Python 3 两套示例代码下载下来跑通,再逐章改写为自己熟悉的版本。
- 遇到 PyQt、Flask、xlwt 等库报错时,先查当前官方文档确认 API 变化,把“改代码”本身当作练习。
- 建议同步建立一个自己的小项目(如 todo 数据表),从数据库写到 Flask 网页,把第 8、9 章串成一条完整链路。
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
- Publisher's Note
- Preface
- Chapter 1 Introduction
- 1.1 Features of Python
- 1.2 Python Versions and Integrated Packages
- 1.3 Downloading and Installing Python (Windows Installation, Anaconda)
- 1.4 Python IDEs (IDLE, PyCharm, Spyder, Other IDEs)
- 1.5 How to Install Software Packages (easy_install, pip)
- 1.6 Advanced Topic: Matplotlib (Plotting, Drawing Historical Stock Candlestick Charts)
- Chapter 2 Data Types
- 2.1 Numeric Data Types (bool, int, long integer, float, Decimal, complex numbers, operators)
- 2.2 Sequences (strings, lists, tuples)
- 2.3 Dictionaries (creation, access, related functions)
- 2.4 Advanced Topic: NumPy (differences between arrays and lists, data types)
- Chapter 3 Control Flow and Operations
- 3.1 Selection Structures (single branch, double branch, multiple branches, conditional expressions)
- 3.2 Loop Structures (while, for)
- 3.3 Advanced Topic: NumPy Array Operations (creation, indexing and slicing, transposition, universal functions, statistics, set operations, random numbers, sorting, linear algebra, file access)
- Chapter 4 Functions and Functional Programming
- 4.1 Functions
- 4.2 Function Parameters
- 4.3 Decorators
- 4.4 Functional Programming (lambda, map/filter/reduce, partial functions)
- 4.5 Variable Scope (global statement, closures)
- 4.6 Recursion
- 4.7 Generators
- 4.8 Advanced Topic: SciPy (Fourier transform, filtering)
- Chapter 5 Files
- 5.1 Disk Files
- 5.2 StringIO File-like Objects
- 5.3 File System Operations (os module, os.path module, shutil module)
- 5.4 Advanced Topic: Reading and Writing Excel Files in Python (xlwt, xlrd, xlutils)
- Chapter 6 Modules and Packages
- 6.1 Modules (search path, import, namespaces, circular imports)
- 6.2 Packages
- 6.3 Advanced Topic: Program Packaging (Distutils, py2exe)
- Chapter 7 Classes
- 7.1 Basic Concepts
- 7.2 Class Definition
- 7.3 Instances (creation, initialization, special methods)
FAQ
这本书的书名是不是《从0到1 Python即学即用》?
书里的代码用的是 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.
About the author
Zhang Yanni is an author about whom limited public information is available. The records currently show only two works, one in programming and design and the other in cultural writing, covering quite different fields. The first, Cloud Data Lake: Building Robust Cloud Data Architecture, addresses readers interested in cloud computing and data engineering, discussing how to build stable and reliable data lake architectures in the cloud; it is a technical work with a practical orientation. The second, I Believe in China, turns to cultural themes and focuses on expressions and reflections concerning China. The wide gap between these two subjects suggests that Zhang's writing is not confined to a single direction: she is willing to engage with both technically demanding content and cultural topics. Since details such as dates of birth and death, nationality, and educational background are not recorded, her life cannot be described in detail, and readers may begin with these two works to understand her writing interests and emphases in different fields.