20本最好的免费的Python书籍

想要学习Python编程语言的读者有大量相关书籍可供选择,有印刷版也有电子版,而Python是一门开源的编译语言,开发者也提供了不少免费可自由下载的Python电子书。本文挑选其中最优秀的  20本 Python电子书 ,内容覆盖了Python的一般介绍,游戏开发,编程技巧,儿童编程学习等类别,它们大多数都采用了创作共用署名非商业许可证,如《T  hink Python 》、《  Invent Your Own Computer Games with Python 》、《  笨方法学   Python第二版 》、《  Natural Language Processing with Python 》等。

1. Think Python

20本最好的免费的Python书籍
Websitewww.greenteapress.com/thinkpython/thinkpython.html
AuthorAllen B. Downey
FormatPDF, Postscript, LaTeX, HTML EPUB
Pages234

Think Python is a concise and gentle introduction to software design using the Python programming language. Intended for would-be developers with no programming experience. This book starts with the most basic concepts and gradually adds new material at a pace that is comfortable to the reader.

This book providing a wealth of information on:

  • Variables, expressions and statements
  • Functions
  • Conditionals and recursion
  • Fruitful functions
  • Interation
  • Strings
  • Lists
  • Dictionaries
  • Tuples - ordered list of elements
  • Files
  • Classes and objects / Classes and functions / Classes and methods
  • Inheritance
  • Case studies on interface design, word play, data structure selection, and Tkinter

It is available under the Creative Commons Attribution-NonCommercial 3.0 Unported License.


2. Invent Your Own Computer Games with Python

20本最好的免费的Python书籍
Websiteinventwithpython.com
AuthorAlbert Sweigart
FormatPDF
Pages436

Invent Your Own Computer Games with Python teaches you computer programming in the Python programming language. Each chapter gives you the complete source code for a new game and teaches the programming concepts from these examples.

The book is available under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 license. Invent with Python was written to be understandable by kids as young as 10 to 12 years old, although it is suitable for any age.

This second edition has revised and expanded content, including using the Pygame library to make games with graphics, animation, and sound.

The book focuses on three different areas:

  • Series of tutorials ranging from a simple "guess the number" game, to drawing game boards with ASCII art, reversi, and simple artifical intelligence simulation
  • Make the design for a Hangman game
  • Learn new methods and functions that come with Python
  • Simple mathematical concepts including cartesian coordinate systems, X-axis and Y-axis, the commutative property of addition, and absolute values and the abs () function
  • Use the Pygame library to make games with graphics, animation, mouse input, and sound
  • Make graphical user interface programs that have graphics and can accept input from the keyboard and mouse

3. Snake Wrangling for Kids

20本最好的免费的Python书籍
Websitewww.briggs.net.nz/snake-wrangling-for-kids.html
AuthorJason R. Briggs
FormatPDF
Pages150

Snake Wrangling for Kids is a printable electronic book, for children 8 years and older, who would like to learn computer programming. It covers the very basics of programming, and uses the Python 3 programming language to teach the concepts.

There are 3 different versions of the free book (one for Mac, one for Linux and one for Windows). There have been around 50,000 downloads, as of 2012. It has been rewritten and updated, with new chapters (including developing graphical games), and new code examples

This version is licensed under the Creative Commons license.

  • Use fundamental data structures like lists, tuples, and maps
  • Organize and reuse your code with functions and modules
  • Use control structures like loops and conditional statements
  • Draw shapes and patterns with Python's turtle module
  • Create games, animations, and other graphical wonders with Tkinter

4. Learn Python the Hard Way, 2nd Edition

20本最好的免费的Python书籍
Websitelearnpythonthehardway.org
AuthorZed Shaw
FormatHTML
Pages183

This simple book is meant to give you a first start in programming.

The title says it is the hard way to learn to write code but it is actually not. It is the hard way only in that it is the way people used to teach things. In this book you will do something incredibly simple that all programmers actually do to learn a language.

This is a very beginner book for people who want to learn to code. If you can already code then look elsewhere. It is targeted for newbies to build up their skills before starting a more detailed book. The 2nd Edition features 5 new exercises, fixes and updates to nearly every exercise, and three of the new exercises teach you to create a simple web application as the final part of the book.

The book consists of:

  • 52 Exercises which consist of typing code samples. This helps budding Python programmers to learn the names of the symbols, become familiar with typing them, and reading the language
  • Exercises cover topics such as: Variables, printing, functions, boolean algebra, branches and functions, automated testing, and starting your own game

5. Natural Language Processing with Python

20本最好的免费的Python书籍
Websitenltk.org/book/
AuthorSteven Bird, Ewan Klein, and Edward Loper
FormatPDF, Ebook, HTML
Pages504

Natural Language Processing with Python - Analyzing Text with the Natural Language Toolkit offers a highly accessible introduction to natural language processing, the field that supports a variety of language technologies, from predictive text and email filtering to automatic summarization and translation. Learn how to write Python programs that work with large collections of unstructured text. Access richly annotated datasets using a comprehensive range of linguistic data structures, and understand the main algorithms for analyzing the content and structure of written communication.

This book is made available under the terms of the Creative Commons Attribution Noncommercial No-Derivative-Works 3.0 US License.

This book helps to:

  • Extract information from unstructured text, either to guess the topic or identify "named entities"
  • Analyze linguistic structure in text, including parsing and semantic analysis
  • Access popular linguistic databases, including WordNet and treebanks
  • Integrate techniques drawn from fields as diverse as linguistics and artificial intelligence

6. Building Skills in Python

20本最好的免费的Python书籍
Websitewww.itmaybeahack.com/homepage/books/python.html
AuthorSteven F. Lott
FormatPDF, HTML
Pages574

This 47 chapter book will help you build Python programming skills through a series of exercises. It includes six projects from straightforward to sophisticated that will help solidify your Python skills.

This book is a close-to-complete presentation of the Python language, updated to cover Python 2.6 and some elements of Python 3.1. It is oriented toward learning, which involves accumulating many closely intertwined concepts. This book is primarily targeted at professional programmers.

The book explores a wide range of topics including:

  • Numeric Expressions and Output
  • Advanced Expressions
  • Variables, Assignment and Input
  • Truth, Comparison and Conditional Processing
  • Loops and Iterative Procssing
  • Functions

This book is made available under a Creative Commons Attribution-Noncommercial-No Derivative Works License.


7. Dive into Python

20本最好的免费的Python书籍
Websitewww.diveintopython.net
AuthorMark Pilgrim
FormatPDF, HTML, Word 97, Plain Text, HTML (single file), XML, Build scripts
Pages327

Dive Into Python is a hands-on guide to the Python language. Each chapter starts with a real, complete code sample, proceeds to pick it apart and explain the pieces, and then puts it all back together in a summary at the end.

Explores:

  • Native Datatypes
  • The Power of Introspection
  • Objects and Object-Orientation
  • Exceptions and File Handling
  • Regular Expressions
  • HTML Processing
  • XML Processing
  • Scripts and Streams
  • HTTP Web Services
  • SOAP Web Services
  • Unit Testing
  • Refactoring
  • Functional Programming
  • Dynamic Functions
  • Performance Tuning

This book is licensed under the terms of the GNU Free Documentation License, Version 1.1 or any later version.


8. Text Processing in Python

20本最好的免费的Python书籍
Websitegnosis.cx/TPiP/
AuthorDavid Mertz
FormatSmart ASCII format
Pages544

Text Processing in Python describes techniques for manipulation of text using the Python programming language. At the broadest level, text processing is simply taking textual information and doing something with it. This might be restructuring or reformatting it, extracting smaller bits of information from it, or performing calculations that depend on the text.

Text processing is arguably what most programmers spend most of their time doing. Because Python is clear, expressive, and object-oriented it is a perfect language for doing text processing, even better than Perl. As the amount of data everywhere continues to increase, this is more and more of a challenge for programmers.

This book is not a tutorial on Python. The author provides practical pointers and tips that emphasize efficent, flexible, and maintainable approaches to the text processing tasks that working programmers face daily.

Text Processing in Python begins with an introduction to text processing and contains a quick Python tutorial to get you up to speed. It then delves into essential text processing subject areas, including string operations, regular expressions, parsers and state machines, and Internet tools and techniques. Appendixes cover such important topics as data compression and Unicode.

This book is copyright to Addison Wesley but can be downloaded without charge.

9. The Standard Python Library

20本最好的免费的Python书籍
Websiteeffbot.org/zone/librarybook-index.htm
AuthorFredrik Lundh
FormatPDF, Single chapter PDFs, HTML
Pages300

The Standard Python Library is a guide for serious Python programmers. It offers accurate, author-tested documentation of all the modules in the Python 2.0 Library, together with over 300 annotated example scripts using the modules.

The book has chapters on:

  • Standard and Core Modules
  • Threads and Processes
  • Data Representation
  • File Formats
  • Mail and News Messages
  • Network Protocols
  • Internationalization
  • Multimedia Modules
  • Data Storage
  • Tools and Utilities
  • Platform Specific Modules
  • Implementation Support Modules
  • Other Modules

This is an electronic edition which is based on the second edition published by O'Reilly in 2001.

10. The Definitive Guide to Pylons

20本最好的免费的Python书籍
Websitepylonsbook.com/en/1.1/
AuthorJames Gardner
FormatPDF, HTML
Pages568

Pylons is a lightweight web framework built on standard Python tools that provides a robust environment for writing modern web applications. It is well known for its clean architecture and loosely coupled approach, both of which make web development fast, flexible, and easy.

The Definitive Guide to Pylons teaches you everything you need to know about web development with Pylons - from how to create your first "Hello World!" application to how to use each of Pylons’ core tools including FormEncode, Mako, SQLAlchemy, and Routes to how to perform more advanced tasks such as testing, using Unicode, internationalizing your application, authenticating users, and more.

It also helps developers make use of the software's built-in support for session management, web services, and Ajax.

This book is made available under the terms of the GNU Free Documentation License, Version 1.2 or any later version.

11. Making Games with Python & Pygame

20本最好的免费的Python书籍
Websiteinventwithpython.com/pygame/index.html
AuthorAl Sweigart
FormatPDF, HTML, Mobi
Pages365

This book teaches you how to make graphical computer games in the Python programming language using the Pygame library. It is targeted at the intermediate programmer.

The book features the source code to 11 games. Each chapter focuses on a single game program, explaining how different parts of the code work. The games are clones of classics such as Nibbles, Tetris, Simon, Bejeweled, Othello, Ink Spill, Connect Four, Flood It, and others. The programs are less than 600 lines long.

The book and the programs are open source, and are available under a Creative Commons Attribution-Noncommercial-Share Alike license.


12. Python Module of the Week

20本最好的免费的Python书籍
Websitewww.doughellmann.com/PyMOTW/index.html
AuthorDoug Hellmann
FormatPDF, HTML
Pages953

Python Module of the Week (PyMOTW) is a series of blog posts written by Doug Hellmann. It was started as a way to build the habit of writing something on a regular basis. The focus of the series is building a set of example code for the modules in the Python standard library.

PyMOTW is a good source of documentation for Python modules.

PyMOTW includes a command line program, motw, to make it easier to access the examples while you are developing.

This work is made available under the terms of the Creative Commons Attribution-NonCommercial Share-alike 3.0 license.


13. A Byte of Python

20本最好的免费的Python书籍
Websitewww.swaroopch.com/notes/python/
AuthorSwaroop C H
FormatPDF, HTML, Full source
Pages120

A Byte of Python is a free book on programming using the Python language. It serves as a tutorial or guide to the Python language for a beginner audience.

This book is written for the latest Python 3.

This book is released under the Creative Commons Attribution-NonCommercial-ShareAlike License 3.0

Topics covered include:

  • Basics of Python
  • Operators and Expressions
  • Control Flow
  • Functions
  • Modules
  • Data Structures
  • Problem Solving
  • Object Oriented Programming
  • Input Output
  • Exceptions
  • Standard Library

14. Think Complexity

20本最好的免费的Python书籍
Websitegreenteapress.com/complexity/html/jndex.html
AuthorAllen B. Downey
FormatPDF, HTML
Pages148

This book is about data structures and algorithms, intermediate programming in Python, computational modeling and the philosophy of science:

Topics covered include:

  • Graphs including random and connected graphs
  • Analysis of algorithms - the branch of computer science that considers the performance of algorithms
  • Small world graphs
  • Scale-free networks: Zipf's law, cumulative, continuous and Pareto distributions
  • Cellular automata
  • Game of Life
  • Fractals
  • Self-organized criticality
  • Case studies

15. Data Structures and Algorithms with Object-Oriented Design Patterns in Python

20本最好的免费的Python书籍
Websitewww.brpreiss.com/books/opus7/html/book.html
AuthorBruno R. Preiss
FormatPDF (not available in the public domain), HTML
Pages557

This book is about the fundamentals of data structures and algorithms - the basic elements from which large and complex software artifacts are built. To develop a solid understanding of a data structure requires three things:

  • Learn how the information is arranged in the memory of the computer
  • Become familar with the algorithms for manipulating the information contained in the data structure
  • Understand the performance characteristics of the data structure so that when called upon to select a suitable data structure for a particular application

This book also illustrates object-oriented design and it promotes the use of common, object-oriented design patterns. The algorithms and data structures in the book are presented in the Python programming language. Virtually all the data structures are presented in the context of a single class hierarchy.

16. Programming Computer Vision with Python

20本最好的免费的Python书籍
Websiteprogrammingcomputervision.com
AuthorJan Erik Solem
FormatPDF
Pages300

This book gives a hands-on introduction to the underlying theory and algorithms of computer vision (images, videos, etc). It seeks to explain computer vision in simple terms, without becoming too embroiled in theory. You will learn techniques for object recognition, 3D reconstruction, stereo imaging, augmented reality, and other computer vision applications as you follow clear examples written in Python. There are complete code samples with accompanying explanations.

The Python language compes with many powerful modules for handling images, mathematical computing and data mining.

The final draft of the book is released under a Creative Commons license.

Topics covered include:

  • Learn techniques used in robot navigation, medical image analysis, and other computer vision applications
  • Work with image mappings and transforms, such as texture warping and panorama creation
  • Compute 3D reconstructions from several images of the same scene
  • Organize images based on similarity or content, using clustering methods
  • Build efficient image retrieval techniques to search for images based on visual content
  • Use algorithms to classify image content and recognize objects
  • Access the popular OpenCV library through a Python interface

17. Python for you and me 0.2

20本最好的免费的Python书籍
Websitekushal.fedorapeople.org/book/
AuthorKushal Das
FormatPDF, HTML
Pages70

This book is designed for newcomers to the Python programming language. It is released under the GNU Free Documentation License v1.2 or later.

Topics covered include:

  • Variables and Datatypes
  • Operators and expressions
  • Control flow
  • Looping
  • Data structures
  • Strings
  • Functions
  • File handling
  • Class
  • Modules
  • Collections module
  • Virtual Python Environment builder

18. Problem Solving with Algorithms and Data Structures using Python

20本最好的免费的Python书籍
Websiteinteractivepython.org/courselib/static/pythonds/index.html
AuthorBradley W. Miller and David L. Ranum
FormatHTML
Pages432

This textbook is designed to serve as a text for a first course on data structures and algorithms, typically taught as the second course in the computer science curriculum.

The objectives of this book are:

  • To review the ideas of computer science, programming, and problem-solving
  • To understand abstraction and the role it plays in the problem-solving process
  • To understand and implement the notion of an abstract data type
  • To review the Python programming language
    • Getting started with data
      • Built-in atomic data types
      • Built-in collection data types
    • Input and output
      • String formatting
    • Control structures
    • Exception handling
    • Defining functions
    • Object-oriented programming in Python
  • Discussion questions
  • Programming exercises

19. The Art and Craft of Programming Python Edition

20本最好的免费的Python书籍
Websitebeastie.cs.ua.edu/cs150/book/index.html
AuthorJohn C. Lusth
FormatPDF, HTML
Pages115

This book is designed to be used as the primary textbook in a college-level first course in computing. It takes a fairly traditional approach, emphasizing problem solving, design, and programming as the core skills of computer science. However, these ideas are illustrated using Python.

Although Python is used as the language, teaching Python is not the focus of this book. Rather, Python is used to illustrate fundamental principles of design and programming that apply in any language or computing environment. In some places, the author has deliberately avoided certain Python features and idioms that are not generally found in other languages. There are already many good books about Python on the market; this book is intended as an introduction to computing.

Topics covered include:

  • Literals, Combining Literals
  • Precedence and associativity
  • Variables
  • Assignment
  • Conditionals
  • Functions
  • Input and output
  • Scope
  • Loops
  • Lists
  • Recursion
  • Two-dimensional arrays

20. Python Programming

20本最好的免费的Python书籍
Websiteen.wikibooks.org/wiki/Python_Programming
AuthorMany contributors
FormatPDF, HTML, eBook
Pages159

This book describes Python, an open-source general-purpose interpreted programming language. It is licensed under Creative Commons Attribution-Share Alike 3.0 license.

Topics covered include:

  • Basic syntax, data types, numbers, strings, lists, dictionaries, sets, operators
  • Flow control, functions, scoping, exceptions, input and output
  • Modules, classes, metaclasses, regular expression
  • GUI programming covering Tkinter, PyGTK, PyQt, wxPython, Dabo, pyFltk, and other toolkits
  • Game programming in Python: 2D and 3D
  • Sockets, Files
  • Database programming
  • Web page harvesting
  • Threading
  • Extending with C and C++
  • WSGI web programming

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://xiahunao.cn/news/251025.html

如若内容造成侵权/违法违规/事实不符,请联系瞎胡闹网进行投诉反馈,一经查实,立即删除!

相关文章

Python书籍推荐:《Python3标准库》

最近双十一气氛弥漫在整个互联网,不买点东西总觉得缺了什么。在逛某东的时候无意中发现了这本刚出版没多久的书,一时心血来潮立即加入购物车,这不对啊,价格这么贵,而且优惠套路太多了。去当当一看,五折&…

python基础学习的书籍

分享几本python基础学习的书籍给大家 《Python编程:从入门到实践》 《Python编程:从入门到实践》 书籍详情链接 内容简介:本书是一本针对所有层次的Python 读者而作的Python 入门书。全书分两部分:第一部分介绍用Python 编程所必…

2023!七大最佳Python书籍,入门到精通推荐!

前言 什么是Python? Python是一种高级编程语言,用于使用正确的工具和库文件进行Web开发,桌面应用程序,人工智能,OS,原型,GUI应用,图像处理,科学计算。此外,…

12个python超强学习网站!加python书籍推荐!( 入门python自学推荐!建议收藏!)

python学习网站 一、python学习网站1 CSDN2 Python1233 python中文学习大本营4 python开发者社区5 github6 python学习网7 python在线帮助文档8 python3简明教程9 中国大学MOOC10 菜鸟python教程11 W3school教程12 廖雪峰的官方网站 二、python自学书籍推荐(入门)1.《Python编程…

学习python的三本书

……如果你非要找一本可以捧在手上的书,那么一本好的 Python 书的标准是要么在广度上有建树要么就是深度。广度上来说,《Python编程金典》做得不错;深度上, 《python cookbook》和《可爱的 Python》系列文章比较好。…… 其实在那时&#xff…

12本Python书籍推荐

Python是用于各种任务和领域的优秀编程语言之一。 Python的用户友好性,高级特性以及对简单性和增强代码可读性的强调使其成为全球许多开发人员的理想选择。 诸如此类的功能使应用程序开发,数据科学,人工智能或任何其他行业的Python需求激增。…

4本Python必读的入门书籍

Python入门书籍不用看太多,看一本就够。重要的是你要学习Python的哪个方向,或者说你对什么方向感兴趣,因为Python这门语言的应用领域比较广泛,比如说可以用来做数据分析、机器学习,也可以用来做后端开发、还可以做Web开…

2021年度最受推荐的10本Python书籍

Python是一种通用的解释型编程,主要用于Web开发、机器学习和复杂数据分析。Python对初学者来说是一种完美的语言,因为它易于学习和理解,随着这种语言的普及,Python程序员的机会也越来越大。 如果你想学习Python编程,市…

十大最佳Python书籍[2021年更新]

随着软件热潮中就业机会的增加,对python开发人员的需求很大。可以通读概念并实践逻辑方法解决方案,从而掌握Python编程技能。 Python编码书籍使您可以通过新颖的构思来制作有趣而有趣的项目。它们可以帮助您通过自定义选项创建出色的设计,还…

最受推荐的10本Python书籍

最受推荐的10本Python书籍 文章目录 最受推荐的10本Python书籍适合初学者的最佳Python书籍1、《Python编程:从入门到实践》2、《Head-First Python (2nd edition)》3、《“笨方法”学Python》4、《Python程序设计(第3版)》 最适合初学者的免费…

学习Python必备的8本书

在过去一年里,Python的热度一路飙升,国内越来越多的人选择学习Python,如今已然成为大量开发者推荐的入门编程语言和第二编程语言,而且Python还是人工智能的主要编程语言,因此,其重要性和流行度也就不言而喻…

7本Python必读的入门书籍

Python入门书籍不用看太多,看一本就够。重要的是你要学习Python的哪个方向,或者说你对什么方向感兴趣,因为Python这门语言的应用领域比较广泛,比如说可以用来做数据分析、机器学习,也可以用来做后端开发、还可以做Web开…

python学习:最适合初学者的8本Python书籍

Python是最友好的编程语言之一,也因此成为初学者的首选,为了帮助你更好更快的上手Python,并学会使用Python进行编程,本文我们为初学者分享了最好的Python书籍。希望能够对你有所帮助: 1、《Python编程:从入…

Python进阶书籍经典书有这样三本

1、Python核心编程(第3版)[Core Python Applications Programming(3rd Edition)] [美] Wesley Chun 著,孙波翔,李斌,李晗 译 “本书简洁而不失其技术深度,内容丰富全面,…

触摸屏驱动的问题,在C站搜文章一下午解决不了,最后ChatGpt解决了

目录 一、遇到问题二、在C站搜索文章去解决问题的收获三、用 ChatGpt 去解决的收获四、总结 一、遇到问题 现实问题: 有一个基于Linux4.19内核开发了,在海思SS528芯片运行的系统,用鼠标可以正常使用。 现在要求使用一块公司开发的 多点触控屏…

苹果手机home键在哪里_苹果手机为什么没有返回键?原来隐藏着更好的方法,涨知识了...

手机主要分为苹果和安卓两种,安卓手机的用户,如果突然换用了苹果手机,就会发现很难适应。没有返回键、后台键的手机,仅为一个Home键就可以操作全部。 一、不用返回键原因 苹果发布的第一代产品就没有设计返回键,仅在屏…

iPhone显示返回的是html界面,iPhone X怎么回到主界面?苹果X返回主页的两种方法...

iPhone X怎么回到主页?苹果今年发布的iPhone X手机,由于采用了全面屏设计,彻底取消了Home键,在操作体验上发生了很大的改变,以至于一些老司机果粉在初次上手iPhone X的时候,也会遇到各种尴尬问题。今天要带…

牛客网刷题学习SQL(五)

SQL25 查找山东大学或者性别为男生的信息 分析: 查看学校为山东大学或者性别为男性的用户的device_id、gender、age和gpa数据,结果不去重。 山东大学 --》 where university“山东大学” 男性—》where gender “male” 结果不去重 所以上面不能使用or&…

vue3 实现全选/全不选功能

List item vue3实现全选/全不选功能 实现逻辑就是全选按钮的选中与否依赖,所有的子复选框是否选中, 通过计算属性的 get()跟set()方法绑定 全选按钮的值. <template><div class"container"><input type"checkbox" v-model"checkAll&qu…

html重启手机,华为怎样重启手机(手机强制重启操作措施)

众所周知&#xff0c;在互联网时代的当下&#xff0c;手机已经和我们形影不离&#xff0c;难舍难分&#xff0c;无论是工作中还是生活中手机都显得极其重要。尽管我们对手机是这么的熟悉&#xff0c;但大部分人始终有这样一个疑问&#xff0c;手机关机和重启到底有什么区别&…