本书分为两部分:第一部分介绍Python编程必须理解的基本概念,包括强大的Python库和工具,如Matplotlib,以及列表、字典、if语句、类、文件和异常、代码测试等;
第二部分将理论应用于实践,说明如何开发三个项目,包括简单的2D游戏、使用数据生成交互式信息地图以及创建和定制简单的web应用程序,并帮助读者解决常见的编程问题和难题。第二个版本进行了全面修订,简化了python的安装过程,并在项目中使用了plot库和新版本的Django和bootstrap。
This book is an introduction to Python for all levels of Python readers. The book is divided into two parts: the first part introduces the basic concepts that must be understood for programming in Python, including powerful Python libraries and tools such as Matplotlib, as well as lists, dictionaries, if statements, classes, files and exceptions, code testing, etc; The second part puts the theory into practice, explains how to develop three projects, including simple 2D games, using data to generate interactive information maps, and creating and customizing simple web applications, and helps readers solve common programming problems and puzzles. The second version has been comprehensively revised to simplify the python installation process, add f string, get () method and other contents, and use the plot library and the new version of Django and bootstrap in the project.