[![python_vesion](https://img.shields.io/badge/Python-3.5%2B-green.svg)](requirements.txt)
[![License Apache 2.0](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](LICENSE)
[![GitHub issues](https://img.shields.io/github/issues/.svg)](/issues)
[![Wechat Group](http://vlog.sfyc.ltd/wechat_everyday/wxgroup_logo.png?imageView2/0/w/60/h/20)](#Contact)
# python-tutorial
Python实用教程,包括:Python基础,Python高级特性,面向对象编程,多线程,数据库,数据科学,Flask,爬虫开发教程。
在本Python教程包含了一些范例,涵盖了大多数Python日常脚本任务,是入门Python的学习资料,也可以作为工作中编写Python脚本的参考实现。
以下所有实现均在python3环境下测试。
**Guide**
- [Tutorial](#python-tutorial的例子清单)
- [Get Started](#get-started)
- [Contact](#Contact)
- [Cite](#Cite)
- [Reference](#reference)
# python-tutorial的例子清单
- 目录说明
| **目录** | **主题** | 简要说明 |
| --------------------- | -------------------------------------------- | ---------------------------- |
| [01_base](01_base) | Python基础 | 提供了数据类型、字符串、list、条件判断、循环、函数、文件、多进程的使用例子。 |
| [02_advanced](02_advanced) | Python高级特性 | 提供了数据库、高阶函数、迭代器、面向对象编程的使用例子。 |
| [03_data_science](03_data_science) | 数据科学 | 提供了常用数据科学库(numpy、scipy、scikit-learn、pandas)的使用例子。 |
| [04_flask](04_flask) | Flask开发 | 提供了Web框架Flask的使用例子。 |
| [05_spider](05_spider) | 爬虫 | 提供了网络爬虫的实现例子。|
| [06_tool](06_tool) | 实用工具 | 提供了常用的实用工具,包括参数解析、日志工具等例子。|
- Notebook教程说明
| Notebook | Description | |
|:----------|:-------------|------:|
| [01_base/01_字符串类型_str.ipynb](/blob/master/01_base/01_字符串类型_str.ipynb) | Python字符串类型 |[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github//blob/master/01_base/01_字符串类型_str.ipynb) |
| [01_base/02_列表类型_list.ipynb](/blob/master/01_base/02_列表类型_list.ipynb) | Python列表类型 |[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github//blob/master/01_base/02_列表类型_list.ipynb) |
| [01_base/03_元组类型_tuple.ipynb](/blob/master/01_base/03_元组类型_tuple.ipynb) | Python元组 |[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github//blob/master/01_base/03_元组类型_tuple.ipynb) |
| [01_base/04_字典类型_dict.ipynb](/blob/master/01_base/04_字典类型_dict.ipynb) | Python字典 |[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github//blob/master/01_base/04_字典类型_dict.ipynb) |
| [01_base/05_集合类型_set.ipynb](/blob/master/01_base/05_集合类型_set.ipynb) | Python集合 |[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github//blob/master/01_base/05_集合类型_set.ipynb) |
| [01_base/06_条件判断_if.ipynb](/blob/master/01_base/06_条件判断_if.ipynb) | Python条件判断 |[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github//blob/master/01_base/06_条件判断_if.ipynb) |
| [01_base/07_列表推导式.ipynb](/blob/master/01_base/07_列表推导式.ipynb) | Python列表推导式 |[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github//blob/master/01_base/07_列表推导式.ipynb) |
| [01_base/08_循环结构_loop.ipynb](/blob/master/01_base/08_循环结构_loop.ipynb) | Python循环 |[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github//blob/master/01_base/08_循环结构_loop.ipynb) |
| [01_base/09_函数和模块.ipynb](/blob/master/01_base/09_函数和模块.ipynb) | Python函数 |[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github//blob/master/01_base/09_函数和模块.ipynb) |
| [01_base/10_文件和异常.ipynb](/blob/master/01_base/10_文件和异常.ipynb) | Python文件和异常 |[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github//blob/master/01_base/10_文件和异常.ipynb) |
| [01_base/11_线程和进程.ipynb](/blob/master/01_base/11_线程和进程.ipynb) | Python多线程和多进程 |[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github//blob/master/01_base/11_线程和进程.ipynb) |
| [02_advanced/01_系统交互_os.ipynb](/blob/master/02_advanced/01_系统交互_os.ipynb) | Python系统交互操作 |[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github//blob/master/02_advanced/01_系统交互_os.ipynb) |
| [02_advanced/02_数据库_sql.ipynb](/blob/master/02_advanced/02_数据库_sql.ipynb) | Python操作mysql数据库 |[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github//blob/master/02_advanced/02_数据库_sql.ipynb) |
| [02_advanced/03_高阶函数.ipynb](/blob/master/02_advanced/03_高阶函数.ipynb) | map、filter、lambda高阶函数 |[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github//blob/master/02_advanced/03_高阶函数.ipynb) |
| [02_advanced/04_迭代器与生成器.ipynb](/blob/master/02_advanced/04_迭代器与生成器.ipynb) | 迭代器和yield生成器 |[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github//blob/master/02_advanced/04_迭代器与生成器.ipynb) |
| [02_advanced/05_上下文管理器.ipynb](/blob/master/02_advanced/05_上下文管理器.ipynb) | with语句 |[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github//blob/master/02_advanced/05_上下文管理器.ipynb) |
| [02_advanced/06_装饰器.ipynb](/blob/master/02_advanced/06_装饰器.ipynb) | Decorator装饰器 |[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github//blob/master/02_advanced/06_装饰器.ipynb) |
| [02_advanced/07_面向对象编程.ipynb](/blob/master/02_advanced/07_面向对象编程.ipynb) | Python类 |[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github//blob/master/02_advanced/07_面向对象编程.ipynb) |
| [03_data_science/01_Numpy数组.ipynb](/blob/master/03_data_science/01_Numpy数组.ipynb) | Numpy array数组 |[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github//blob/master/03_data_science/01_Numpy数组.ipynb) |
| [03_data_science/02_Numpy索引.ipynb](/blob/master/03_data_science/02_Numpy索引.ipynb) | Numpy index索引 |[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github//blob/master/03_data_science/02_Numpy索引.ipynb) |
| [03_data_science/03_Numpy方法.ipynb](/blob/master/03_data_science/03_Numpy方法.ipynb) | Numpy 方法 |[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github//blob/master/03_data_science/03_Numpy方法.ipynb) |
| [03_data_science/04_Matpoltlib画图.i