Python 3.5 from Scratch

刘宇宙Tsinghua University Press2017

Rating 3.2
Chapters
22
ISBN
9787302475965

Tags

Computing Software TutorialsProgramming FunctionsDatabase OperationsFile OperationsRegular ExpressionNetwork ProgrammingLinguistic FoundationObject-OrientedBasic GrammarStarting from ScratchProgramming Primer

Summary

Python 3.5 from Scratch is an introductory Python tutorial for absolute beginners, written by Liu Yuzhou and published by Tsinghua University Press in 2017. The book runs about 376 pages and is based on Python 3.5. Its contents proceed from language fundamentals to hands-on application: the opening chapters cover Python's origins, where it is used, and the changes from version 2.7 to 3.5, helping readers understand what the language is good for and offering advice on how to learn it; the book then introduces, in turn, Python's types and objects, operators and expressions, program structure and control flow, functions, lists and tuples, strings, and dictionaries, along with other basic syntax elements, before going on to common technical modules such as exception handling, dates and times, regular expressions, file operations, and multithreading, as well as development scenarios including object-oriented programming, network programming, sending and receiving email, and database operations. In format, the book stresses combining explanation with practice: each chapter explains key points with abundant sample code and intersperses small sections on debugging (troubleshooting programs), questions and answers, and review, while chapter ends offer exercises such as "A Little Test" to help readers digest the material promptly and spot errors in their own programs. The book closes with two hands-on projects, one on web scraping and one on data analysis, which tie together the syntax, file operations, regular expressions, and network programming learned earlier and let readers experience the full process from learning syntax to completing a small application. The author, Liu Yuzhou, has years of experience in software development and big-data R&D, and the book's examples emphasize readability and code that can be run directly. Note that Python 3.5 was still a new version when the book was written; Python has since moved on to later versions, and some syntax details and third-party library usage may have changed, so readers should consult the documentation for the current version as they practice.

Editor's review

这本书的定位很明确:写给“完全没接触过编程”的人看。它没有采用大部头参考手册的写法,而是把Python 3.5的基础语法拆成一条比较平缓的路线——从“Python能干什么、怎么装、怎么写第一行代码”起步,再逐步走到函数、面向对象、异常、文件、多线程这些稍有难度的主题,中途不会突然跳进大量抽象概念,对自学读者比较友好。 比较值得肯定的有两点。一是体例上真的照顾了新手:每章除了讲知识点,还专门安排了“调试”和“问题解答”环节,告诉读者代码报错时该看哪里、常见错误是什么原因造成的,这正是自学编程最容易卡住的地方;章末的“温故知新”和练习题也方便复习检查。二是收尾方式的安排——最后两章以网络爬虫和数据分析两个项目实战作结,把前面散落的语法点串成一个能跑起来的小程序,读者做完会比较有成就感,也能初步知道这些语法在真实场景里怎么用。 当然也要提醒:本书出版于2017年,通篇以Python 3.5为准。如今Python版本、各类第三方库(尤其是爬虫和数据分析相关库)的用法已有不少变化,书中的环境配置和部分示例可能需要自行调整;此外作为入门书,它在深度上并不追求覆盖所有细节。如果读者想快速上手Python、愿意边读边敲代码,并接受“遇到版本差异时上网查一查”,这本书作为起点是合适的;若想系统深入某个方向,还需要后续再找更专门的资料。

Who it's for

A good fit for

Not a good fit for

Reading tips

  1. 务必边读边在自己的电脑上敲一遍示例代码,只读不练很难掌握语法细节
  2. 每章先看“问题解答”和调试部分,再回头巩固正文,可以更快理解常见报错的成因
  3. 阅读时以Python 3.x当前版本实操,遇到与书中3.5版本不一致的地方,查官方文档对照修正
  4. 读到第17、18章项目实战时,先独立思考再对照书中代码,把前面章节的知识串起来使用

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. 1.1 The Origins of Python
  3. 1.2 Where Python Is Used
  4. 1.3 From 2.7 to 3.5: New Features of Python
  5. 1.4 How to Learn Python
  6. Chapter 2: Starting the Python Journey
  7. Chapter 3: Lists and Tuples
  8. Chapter 4: Strings
  9. Chapter 5: Dictionaries
  10. Chapter 6: Conditionals, Loops, and Other Statements
  11. Chapter 7: Functions
  12. Chapter 8: Object-Oriented Programming
  13. Chapter 9: Exceptions
  14. Chapter 10: Dates and Times
  15. Chapter 11: Regular Expressions
  16. Chapter 12: File Operations
  17. Chapter 13: Multithreading
  18. Chapter 14: Sending and Receiving Email
  19. Chapter 15: Network Programming
  20. Chapter 16: Working with Databases
  21. Chapter 17: Hands-On Project—Web Scraping
  22. Chapter 18: Hands-On Project—Data Analysis

FAQ

这本书适合完全没学过编程的人吗? 适合。作者在编写时明确面向Python新手,从语言起源、应用场合和基本语法讲起,每章还配有调试和问题解答栏目来辅助自学;只要愿意动手敲代码,零基础可以跟着走完全书。
书里讲的是Python 3.5,现在还能用吗? 大部分语法与当前Python 3.x版本是相通的,基础部分基本可以直接使用;但Python 3.5之后的版本在语法细节和第三方库接口上有变化,尤其是爬虫和数据分析项目里用到的库,实操时建议配合当前版本的官方文档调整。
这本书和清华大学出版社的版本信息是什么? 该书由刘宇宙编著,清华大学出版社2017年出版,ISBN为978-7-302-47596-5,平装,正文约376页,定价59元。
书中的项目和练习需要额外环境吗? 基础章节只需在本机装好Python解释器即可运行示例;末两章的网络爬虫与数据分析项目通常还要安装相应的第三方库,并可能需要联网环境,建议按书中说明提前准备。

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.