Python 3.5 from Scratch cover

Python 3.5 from Scratch

Rating 3.2
Word count
620K words
Chapters
18
ISBN
9787302475965

Tags

Summary

Python 3.5 from Scratch is a beginner's Python tutorial written by Liu Yuzhou and published by Tsinghua University Press in August 2017. The book runs to about 376 pages and 620,000 characters and is aimed at readers with no prior programming experience. It uses Python 3.5 as the teaching version and opens with Python's origins, its application scenarios, the changes from version 2.7 to 3.5, and environment setup under Windows, Linux/UNIX, and Mac OS, so that readers can get their first program running. It then systematically covers the fundamentals of the Python language: data types, variables and keywords, operators and expressions, and commenting conventions; commonly used sequences and data structures such as lists, tuples, strings, and dictionaries, along with their methods; flow control including the use of import, conditional statements, loops, and the pass statement; function definition, parameter forms, variable scope, recursion, anonymous functions, and partial functions; object-oriented programming concepts including classes and objects, constructors, access permissions, inheritance, polymorphism, encapsulation, multiple inheritance, obtaining object information, and class-specific methods; exception handling and custom exceptions; date and time modules (time, datetime, calendar); regular expressions; file operations; multithreaded programming; email sending and receiving and network programming; and using PyMySQL to connect to databases and implement create, read, update, and delete operations. Each chapter includes sections such as "Debugging," "Questions and Answers," and "Review and Apply," and is interspersed with small exercises such as a guessing game, a quicksort implementation, and travel advice. The final two chapters conclude with a web crawler project and a simple data-based analysis, helping readers tie scattered knowledge into runnable projects. The book offers abundant examples and highly readable code and can also serve as a teaching text for online Python courses, training programs, and college courses.

Editor's review

不少Python入门书一上来就堆语法,读者学着学着就只剩下“认识每个字、连起来不会用”的困惑。这本清华社版教程的编排思路相反:每讲完一块知识点,就用“调试—问题解答—温故知新”三段式把读者从旁观者变成动手的人。书中把复杂概念借日常小事件打比方,环境搭建部分同时覆盖Windows、Linux/UNIX和Mac OS三种系统,对第一次装解释器的人尤为友好;函数、面向对象、异常、正则、文件、多线程、网络与数据库这些模块收得比较完整,末尾还落到爬虫和数据分析两个真实项目上,学习者不至于学完只会做几道课后题。需要提醒的是,全书基于Python 3.5编写,如今主流已是3.10以上,个别语法、第三方库与PyMySQL用法需要按新版文档调整;豆瓣评分6.5(30人评价),评价不算高,但作为“从零到能写小程序”的入门阶梯仍可用。建议搭配官方文档和在线练习平台,边读边敲,把书里的示例改造成自己的小工具。

Who it's for

A good fit for

  • 完全没接触过编程、想用Python入门的零基础读者
  • 需要按部就班系统补齐语法、函数与面向对象基础的自学者
  • 计划用该教材授课的Python网课、培训机构及大专院校教师
  • 有其他语言经验、想快速了解Python 3基本写法的程序员

Not a good fit for

  • 已经熟练使用Python、想深入性能优化或框架开发的进阶开发者
  • 只想要爬虫/数据分析现成方案、不愿阅读语法基础的人
  • 追求基于最新Python版本(3.10以上)写法的读者

Reading tips

  1. 先按第1章把环境装好并成功运行第一个程序,再进入后续语法章节
  2. 每章的“调试”和“温故知新”务必动手完成,可把示例代码改写成自己的小工具
  3. 学习面向对象和异常两章时,回头重写前面用函数写过的猜字游戏,体会差异
  4. 遇到版本差异(如PyMySQL、第三方库安装)时对照Python官方文档与库文档更新写法

About the publisher

Tsinghua University Press China · Founded in 1980

Founded in 1980, Tsinghua University Press has 57 titles in our collection, covering popular science, medicine, health, law, philosophy and social sciences. Representative works include medical popular-science books such as Cancer Truth: Doctors Are Reading It Too and New Knowledge on Cancer by Bo Luo (Li Zhizhong), legal titles such as Sunshine Is the Best Preservative: Express Delivery of Major Global Anti-Corruption Cases, and works like Qi Ge's A Brief History of Philosophy with Big Ideas and Liu Yunhao's From the Internet to a New Industrial Revolution. Its authors include science writers, medical researchers, the Renmin University of China anti-corruption master's class and university scholars, reflecting a publishing profile that balances academic seriousness with accessible reading. As public information is limited, this profile is based only on the titles in our collection.

Contents

  1. Chapter 1 Enter the Wonderful World of Python 3.5
  2. Chapter 2 Begin the Python Journey
  3. Chapter 3 Lists and Tuples
  4. Chapter 4 Strings
  5. Chapter 5 Dictionaries
  6. Chapter 6 Conditionals, Loops, and Other Statements
  7. Chapter 7 Functions
  8. Chapter 8 Object-Oriented Programming
  9. Chapter 9 Exceptions
  10. Chapter 10 Dates and Times
  11. Chapter 11 Regular Expressions
  12. Chapter 12 File Operations
  13. Chapter 13 Multithreaded Programming
  14. Chapter 14 Sending and Receiving Email
  15. Chapter 15 Network Programming
  16. Chapter 16 Database Operations (PyMySQL)
  17. Chapter 17 Hands-On Web Scraping Project
  18. Chapter 18 Data Analysis and Processing

FAQ

这本书适合完全没有编程基础的人吗?
适合。作者在前言中就定位为针对Python新手量身定做,从Python的起源、环境搭建、第一个程序讲起,语法章节配上“调试”“问题解答”“温故知新”栏目,节奏适合零基础读者按顺序推进。
书中讲的Python 3.5现在还能用吗?
核心语法(数据类型、控制流、函数、面向对象、异常、文件操作等)与当前Python 3.x基本一致,仍然可用;但Python 3.5已停止维护,部分示例中的第三方库版本、PyMySQL用法需要按当前版本文档替换,建议以书中思路为主、以官方文档为准。
这本书有讲爬虫和数据分析吗?
有。全书最后两章分别为爬虫实战项目和数据分析和处理,是在学完语法、正则、文件、网络、数据库等章节之后的应用示例,用于把前面零散知识串成完整项目。
需要配套练习或编程环境吗?
强烈建议准备。学编程必须动手,书中第1章就讲解Windows、Linux/UNIX与Mac OS下的安装方法,建议装好Python环境后逐章敲代码,并把各章小练习独立完成一遍。
这本书和《Python编程从入门到实践》相比如何?
两本都是入门向教程,但本书更偏语法体系铺开,章节栏目丰富、先讲清语言要素再做项目;评分与口碑上本书豆瓣6.5分,读者基数较小。若希望有更成熟的项目驱动路径,可两本对照使用。

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

Liu Yuzhou is an author of programming books about whom limited public information is available. The only work currently on record is Python Advanced Programming: Writing More Efficient and Elegant Python Code, which is categorized under programming design. Judging from the title and subject matter, his writing focuses on intermediate and advanced applications of the Python language, with attention to improving code efficiency and readability, and is aimed at readers who already have a foundation and wish to further refine their programming practice. Such content typically emphasizes the combination of engineering habits and language features rather than listing introductory syntax. Because the author's nationality, dates of birth and death, English name, and educational background are not clearly documented, his personal history and the full scope of his work remain difficult to outline; this introduction is based solely on the in-library work information and the writing direction reflected in the book title, and further details await additional public sources.

More by the same author

Top rated in the same category