Crazy Python Lectures cover

Crazy Python Lectures

Rating 3.6
Word count
1.2K words
Chapters
20
Series
Crazy System
ISBN
9787121351976

Tags

Summary

Crazy Python Lectures is a systematic Python tutorial written by Li Gang for the "Crazy Software Education" system, published by Publishing House of Electronics Industry in January 2019 (ISBN 9787121351976, 1,184 thousand characters). The book is roughly divided into four parts. Part One explains Python's basic syntax structure, including language overview and development environment, variables and simple types, lists/tuples/dictionaries, flow control, functions and lambda expressions, classes and objects, exception handling, special methods of classes (generators, operator overloading, etc.), and modules and packages. Part Two introduces commonly used built-in modules and packages: sys, os, random, time, JSON, regular expressions, container-related classes, collections, Tkinter GUI programming, file IO, database programming (SQLite/MySQL), concurrent programming (threads, thread synchronization and communication, thread pools, multiprocessing), and TCP/UDP-based network programming and email support. Part Three covers engineering and distribution: generating documentation with pydoc, doctests, unit testing with unittest, and packaging and distributing programs with zipapp and PyInstaller. Part Four consists of hands-on projects using third-party libraries such as pygame, Matplotlib, Pygal, and Scrapy to complete a "Metal Slug" game, data visualization, and a web crawler (scraping and analyzing recruitment information, handling anti-crawling). The author states that the original intent was not a "simple introduction" but to help readers apply what they learn; the book includes numerous examples and end-of-chapter exercises. In January 2023, a 5th-anniversary edition was released (ISBN 9787121447525, 636 pages).

Editor's review

这是一本“分量很重”的Python教程:600多页、1184千字,从语法细节一直铺到爬虫实战,几乎没有明显的知识断层。它的写法很“李刚”——先摆概念,再用可直接运行的例子验证,语言上尽量通俗(作者提到8岁的孩子也能读懂部分章节),但内容密度并不低,章节末尾的练习往往比正文更考验人。相比市面上主打“轻松入门”的读物,本书的价值在于广度与工程性:GUI、文件IO、数据库、并发、网络、文档测试、打包发布这些“真写程序才会遇到”的内容,被放在同一本书里成体系地讲完;最后三章的合金弹头游戏、数据可视化、Scrapy爬虫项目,也能让读者第一次体会到把知识拼成作品的成就感。需要提醒的是,书中涉及的第三方库版本较早,上手时建议配合当前官方文档核对写法。

Who it's for

A good fit for

  • 已掌握基础语法、希望系统补齐Python知识版图的读者
  • 想通过完整项目熟悉GUI、数据库与爬虫的在校学生
  • 需要一本可长期查阅、备课时参考的培训机构讲师
  • 有编程基础、准备转向Python开发岗的求职者

Not a good fit for

  • 完全没有编程概念、只想读一本薄册子试试水的零基础读者
  • 只想学数据分析或机器学习、不愿看大量语法与工程细节的人
  • 习惯纯视频教学、抗拒阅读长篇幅文字与课后练习的读者

Reading tips

  1. 第1至第9章建议顺序通读,每章务必动手敲完示例并完成章末练习。
  2. 第10至第17章可按需取用,先挑与手头项目相关的模块精读,其余留作工具章节。
  3. 第18至第20章的项目实战建议独立复现一遍,再尝试修改参数或增加功能。
  4. 遇到第三方库版本差异时,以官方文档为准,不必强求与书中代码逐字一致。

About the publisher

Publishing House of Electronics Industry China · Founded in 1982

The Publishing House of Electronics Industry is a comprehensive publisher distinguished by its focus on electronic information and related fields. Judging from the more than 3,000 titles in its catalogue, its publishing covers programming and design, artificial intelligence, computer science, finance and economics, photography, and social sciences, attending both to cutting-edge technology and to general readers. Representative titles include Factor Investing: Methods and Practice, x86 Assembly Language: From Real Mode to Protected Mode, The RISC-V Reader, Artificial Intelligence: Speech Recognition, Understanding and Practice, Phased Array Radar Technology, Radar Target Characteristics, and 100 Go Mistakes and How to Avoid Them, most of which centre on technical methods and engineering practice. Its authors include Shi Chuan, Li Zhong, Wang Xiaobo, David Patterson, Andrew Waterman, and Yu Zihao, among others from China and abroad. Owing to limited public information, no further publishing features are elaborated here.

Contents

  1. Chapter 1 Overview of Python and the Development Environment
  2. Chapter 2 Variables and Simple Types
  3. Chapter 3 Lists, Tuples, and Dictionaries
  4. Chapter 4 Flow Control
  5. Chapter 5 Functions and Lambda Expressions
  6. Chapter 6 Classes and Objects
  7. Chapter 7 Exception Handling
  8. Chapter 8 Special Methods of Python Classes
  9. Chapter 9 Modules and Packages
  10. Chapter 10 Common Modules (sys, os, random, time, JSON, Regular Expressions, collections, etc.)
  11. Chapter 11 GUI Programming (Tkinter)
  12. Chapter 12 File IO
  13. Chapter 13 Database Programming (SQLite, MySQL)
  14. Chapter 14 Concurrent Programming (Threads, Thread Pools, Multiprocessing)
  15. Chapter 15 Network Programming (TCP, UDP, Email)
  16. Chapter 16 Documentation and Testing
  17. Chapter 17 Packaging and Distribution
  18. Chapter 18 Metal Slug (pygame Game Project)
  19. Chapter 19 Data Visualization (Matplotlib, Pygal)
  20. Chapter 20 Web Crawler (Scrapy Project)

FAQ

这本书适合零基础自学吗?
可以,但不算“轻量入门”。作者自述讲解力求通俗,前几章从安装环境、变量、流程控制讲起,零基础读者能跟上;不过全书篇幅大、练习有一定难度,最好配合动手实践并给自己留足时间。
书中用的是Python 2还是Python 3?
全书以Python 3为讲解对象,涉及print函数、字符串格式化等写法均为Python 3风格,个别章节会顺带提及Python 2与3的差异。
需要提前学数据库和网络知识吗?
不需要。第13章数据库编程从数据库API与SQL基础讲起,第15章网络编程也先介绍TCP/IP基础知识,只要掌握前面章节的语法即可。
原版和5周年纪念版有什么差别?
原版为2019年1月第1版,ISBN 9787121351976,648页;2023年1月推出5周年纪念版,ISBN 9787121447525,636页,定价103元,内容结构仍为四大部分,并进一步贴近就业岗位需求。
书中的案例可以在最新版Python上运行吗?
多数基础语法与标准库示例可以正常运行;pygame、Matplotlib、Pygal、Scrapy等第三方库迭代较快,部分接口可能已有变化,遇到报错时查阅当前官方文档调整即可。

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

Li Gang: publicly available information is limited, and no confirmed details about his education, positions, or life experience can be verified. Judging from the 19 works held in the library, his writing and editorial work center on the operation and management of dental institutions, covering specific areas such as infection control, medical safety, equipment management, human resources, patient management, practice opening preparation, and market development, while also extending to clinical teaching content such as infectious diseases. The works are commonly classified under medicine, management, documentary literature, and industrial technology. His books emphasize practical operations and procedural standards and are aimed at dental clinic practitioners and managers, addressing key points in daily operations topic by topic in separate volumes. They are highly practical and instructive, forming a fairly systematic series of titles within dental practice management literature.

More by the same author

Top rated in the same category