Python 3.x: From Beginner to Practical Application
Tags
Summary
Editor's review
Who it's for
A good fit for
- 完全没有编程基础、想系统学一门语言的在校学生与转行者
- 需要一本可按章节授课、带习题与上机演练的Python课程教材的高校教师
- 打算从其他语言转向Python,希望完整梳理语法体系的技术人员
- 偏好「边学边练」,喜欢每章完成一个小项目来巩固的程序设计自学者
Not a good fit for
- 已具备Python基础、想深入并发、元编程或性能优化的进阶开发者
- 希望直接学习数据分析、机器学习或Web框架实战的读者,本书仅作入门铺垫
- 需要针对Python 3.10及以上新特性(如模式匹配)的系统讲解的读者
Reading tips
- 先按第1章装好Anaconda与Spyder并跑通Hello World,环境不通不要急着往后读。
- 每章读完先手敲一遍书中的范例代码,再做「上机实践演练」,最后用课后习题自测,避免只看不写。
- 第6章递归与排序、第7章容器类型、第11章面向对象是全书三个难点,建议各留出双倍时间并整理笔记。
- 第9至14章可按兴趣跳跃:偏数据处理读第13、14章,偏软件开发读第11、12章,读完后用自选小项目替代书中的旧案例练手。
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
- Preface
- Chapter 1 Introduction to Python and Setting Up the Development Environment
- 1.1 Introduction to Python
- 1.2 Programming Languages and Programming (Algorithms, Flowcharts, the Programming Process)
- 1.3 Applications of Python (Web Development Frameworks, Digital Technology Integrated Development)
- 1.4 Setting Up the Python Development Environment (Downloading and Installing Anaconda)
- 1.5 Python Writing Tools (Command Prompt, Spyder Editor, IPython Command Window)
- 1.6 The print Output Statement
- 1.7 Python Programming Style (Encoding Declarations, Comments, Line Breaks and Joining)
- 1.8 Hands-On Practice: Hello World
- Chapter 2 Data Types, Variables, and Constants
- 2.1 Variable Naming and Assignment (Static vs. Dynamic Typing)
- 2.2 Python's Numeric Data Types (Integers, Floats, Booleans)
- 2.3 Constants
- 2.4 Formatted Input and Output (Formatted Output, input())
- 2.5 Data Type Conversion
- 2.6 Hands-On Practice: Pocket-Money Ledger Helper
- Chapter 3 Expressions and Operators
- 3.1 Arithmetic Operators
- 3.2 Assignment Operators
- 3.3 Comparison Operators
- 3.4 Logical Operators
- 3.5 Bitwise Operators
- 3.6 Bit-Shift Operators
- 3.7 Operator Precedence
- 3.8 Hands-On Practice: Report-Card Statistics Helper (Reading CSV Files)
- Chapter 4 Control Flow Structures
- 4.1 Understanding Control Flow (Sequence, Selection, Loop Structures)
- 4.2 Selection Control Flow (if…else, Multiple Selection, Nested if)
- 4.3 Loops (while, for, Nested Loops)
- 4.4 The continue and break Statements
- 4.5 Hands-On Practice: Build Your Own Password Verification Program
- Chapter 5 Working with Strings
- 5.1 Creating Strings
- 5.2 Understanding Escape Characters
- 5.3 Formatted Parameter Output
- 5.4 String Indexing and Slicing (Indexing, Slicing, split())
- 5.5 Common String Operators (Comparison, in and not in)
- 5.6 Common String Functions and Methods (len, Case Conversion, count, strip, replace, find/index, startswith/endswith)
- 5.7 Hands-On Practice: Extracting and Using Open Data
FAQ
这本书适合零基础完全没接触过编程的人吗?
书中的Python版本和开发环境过时了吗?
这本书和《Python编程:从入门到实践》有什么区别?
书末第15章是什么内容?
这本书能用来准备计算机等级考试或课堂学习吗?
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
Zhao Jun is an author whose works span a notably wide range of subjects. Public information about him is limited, and his nationality, dates of birth and death, and educational background are not clearly recorded. Judging from the four works held in the collection, his writing crosses history, politics, programming and design, and the social sciences. In history, he focuses on Sino-Japanese relations and modern Chinese politics, having written on Japanese "continental adventurers" and the war of aggression against China, as well as a study of the Zunyi Conference, which reflects his interest in modern Chinese history and the sources of the War of Resistance. On the technical side, he has written an introduction to Python for medical data analysis and a study of spatial information development and models, showing an engagement with programming practice and information science. This parallel path of humanities and technology gives his works both a documentary and an applied orientation, useful to readers in the relevant fields.