All Projects → ethan-funny → Explore Python

ethan-funny / Explore Python

Licence: other
📗 The Beauty of Python Programming.

Programming Languages

python
139335 projects - #7 most used programming language

Labels

Projects that are alternatives of or similar to Explore Python

Docker Gitbook Pdf Generator
如果你想使用 GitBook 生成 PDF ,又不想折腾,使用这个项目就对啦!
Stars: ✭ 92 (-95.32%)
Mutual labels:  gitbook
Activiti 7 Developers Guide
https://activiti.gitbook.io/activiti-7-developers-guide/
Stars: ✭ 120 (-93.9%)
Mutual labels:  gitbook
Node In Action
📕 一本小书 -《Node.js实战》
Stars: ✭ 126 (-93.59%)
Mutual labels:  gitbook
Nodejs Api Doc Cn
Node.js API 文档(中文版)
Stars: ✭ 98 (-95.02%)
Mutual labels:  gitbook
Istio Handbook
Istio Service Mesh Advanced Practical - Istio服务网格进阶实战 https://www.servicemesher.com/istio-handbook/
Stars: ✭ 1,646 (-16.28%)
Mutual labels:  gitbook
Gitnote
A modern note taking app based on GIT that does not require a local GIT environment.
Stars: ✭ 1,608 (-18.21%)
Mutual labels:  gitbook
Gitbook Starter Kit
GitBook Starter Kit.
Stars: ✭ 86 (-95.63%)
Mutual labels:  gitbook
Wireshark Cheatsheet
Wireshark Cheat Sheet
Stars: ✭ 131 (-93.34%)
Mutual labels:  gitbook
Microservices Architecture
《微服务架构设计》
Stars: ✭ 113 (-94.25%)
Mutual labels:  gitbook
Honkit
📖 HonKit is building beautiful books using Markdown - Fork of GitBook
Stars: ✭ 1,901 (-3.31%)
Mutual labels:  gitbook
Breaking Gfw Book
整理所有的翻墙方法,持续更新....欢迎PR
Stars: ✭ 105 (-94.66%)
Mutual labels:  gitbook
Pwning Juice Shop
GitBook markdown content for the eBook "Pwning OWASP Juice Shop"
Stars: ✭ 110 (-94.4%)
Mutual labels:  gitbook
Kafka Notebook
The Internals of Apache Kafka
Stars: ✭ 124 (-93.69%)
Mutual labels:  gitbook
Http restful api
整理HTTP后台端的RESTful API方面的知识
Stars: ✭ 94 (-95.22%)
Mutual labels:  gitbook
Css Grid Flex
📖An introduction about grid and flex of css.
Stars: ✭ 127 (-93.54%)
Mutual labels:  gitbook
Rust Book Chinese
rust 程序设计语言 中文版
Stars: ✭ 1,280 (-34.89%)
Mutual labels:  gitbook
Clang Format Hooks
Apply a coding style with clang-format only to new code added to an existing code base.
Stars: ✭ 122 (-93.79%)
Mutual labels:  gitbook
Gitbook Reader Rn
Stars: ✭ 134 (-93.18%)
Mutual labels:  gitbook
The Little Go Book
the little go book 繁體中文翻譯
Stars: ✭ 128 (-93.49%)
Mutual labels:  gitbook
Echo
Python package containing all custom layers used in Neural Networks (Compatible with PyTorch, TensorFlow and MegEngine)
Stars: ✭ 126 (-93.59%)
Mutual labels:  gitbook

cover

Python 之旅

Version License: CC BY-NC-ND 4.0

Python 简介

Python 诞生于 1989 年的圣诞期间,由 Guido van Rossum 开发而成,目前 Guido 仍然是 Python 的主要开发者,主导着 Python 的发展方向,Python 社区经常称呼他为『仁慈的独裁者』。

Python 是一门面向对象,解释型的高级程序设计语言,它的语法非常简洁、优雅,而这也是 Python 的一些设计哲学。Python 自带了很完善的库,涵盖了数据库,网络,文件处理,GUI 等方方面面,通过这些库,我们可以比较快速地解决一些棘手问题,也可以将其作为基础库,开发出一些高级库。

目前 Python 在大部分领域都占有一席之地,比如 Web 开发,机器学习,科学计算等。不少大型网站都是使用 Python 作为后台开发语言的,比如 YouTubePinterest、国内的豆瓣知乎等。

另外,有不少知名的机器学习库也是使用 Python 开发的,比如,scikit-learn 是一个强大的机器学习库,PyTorch 是一个成熟的深度学习库。

当然了,Python 也有一些缺点。Python 经常被人们吐槽的一点就是:运行速度慢,和 C/C++ 相比非常慢。但是,除了像视频高清解码等计算密集型任务对运行速度有较高的要求外,在大部分时候,我们可能并不需要非常快的运行速度。比如,一个程序使用 C 来实现,运行时间只需 0.01 秒,而使用 Python 来实现,需要 0.1 秒,虽然 Python 的运行时间是 C 的 10 倍,显然很慢,但对我们而言,这压根不是问题。

关于本书

本书是我学习和使用 Python 的总结。在学习和使用 Python 的过程中,我作了不少笔记,并对一些笔记进行了加工和完善,发表在博客上。随着笔记的增加,我就萌生了写一本书的想法,希望能比较系统地总结相关知识,巩固自己的知识体系,而不是停留在『感觉好像懂了』的状态中。

有了想法之后,接下来就要开始写了。当然,从产生想法到付诸实践还是纠结了一段时间,毕竟,作笔记和写书很不一样啊。思想斗争过后,我下定决心要把它写出来。

首先,我参考一些相关的书籍,作了一个基础的思维导图,如下:

思维导图 Eng journy

接下来,就要开始写作了,这也是最艰难的一关。

我没有按照从头到尾的顺序写,而是从最感兴趣的知识点入手,比如函数式编程、类的使用等等。就这样,一点一点地写,实在不想写了,就先搁置一下,过两天继续写。

我在写作的过程中,给自己提了一个要求:尽量深入浅出,条理清晰。至于是否达到了,希望读者们多多批评指正,并给我提意见和建议。

本书的每章基本上都是独立的,读者可以挑选感兴趣的章节进行阅读。目前本书有 15 个章节:

  • 第 1 章:介绍一些基础知识,包括 Python 中的输入和输出,字符编码。
  • 第 2 章:介绍常用数据类型,比如字符串、列表和字典等。
  • 第 3 章:介绍函数的定义和函数参数魔法。
  • 第 4 章:介绍 Python 中的函数式编程,包括匿名函数、闭包和装饰器等。
  • 第 5 章:介绍 Python 中类的使用,包括类方法、静态方法、super 和元类的使用等。
  • 第 6 章:介绍 Python 中的高级特性,比如生成器,上下文管理器。
  • 第 7 章:介绍文件和目录操作,os 的使用。
  • 第 8 章:介绍使用 Python 处理进程、线程和协程。
  • 第 9 章:异常处理。
  • 第 10 章:单元测试。
  • 第 11 章:正则表达式,re 模块的使用。
  • 第 12 章:HTTP 服务,requests 模块的使用。
  • 第 13 章:一些标准模块的使用,比如 argparse、collections 和 datetime 等。
  • 第 14 章:一些第三方模块的使用。
  • 第 15 章:结束语。

本书的编码环境:

  • Python 版本以 2.7 为主,同时也会指出在 Python3 中的相应变化
  • 操作系统使用 macOS,代码结果,尤其是内存地址等由于运行环境的不同会存在差异

本书将会持续进行修订和更新,读者如果遇到问题,请及时向我反馈,我会在第一时间加以解决。

声明

Creative Commons License

本书由 Ethan 编写,采用 CC BY-NC-ND 4.0 协议发布。

这意味着你可以在非商业性使用的前提下自由转载,但必须:

  1. 保持署名
  2. 不对本书进行修改

更新记录

时间 说明
2017-01-03 发布版本 v1.0
2019-02-09 fix typo

支持我

如果你觉得本书对你有所帮助,不妨请我喝杯咖啡,感谢支持!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].