#!/usr/bin/env python # coding: utf-8 # # **Python3** 入门教程 # # > 作者:wuafeing
# > 邮件:wuafeing@gmail.com
# # Github 加载 .ipynb 的速度较慢,建议在 [Nbviewer](http://nbviewer.jupyter.org/github/wuafeing/Python3-Tutorial/blob/master/index.ipynb) 中查看该项目。 # ## 简介 # # 本教程来自 [Python 入门教程](http://python3-cookbook.readthedocs.io/zh_CN/latest/chapters/p01_data_structures_algorithms.html)。 # # 默认安装了 [Python 3.5](https://www.python.org/downloads/release/python-351/),以及相关的第三方包 [ipython](http://ipython.org/install.html) 。 # # 推荐使用 [Anaconda](https://www.continuum.io/downloads),这个 IDE 集成了大部分常用的包。 # # 笔记内容使用 **`ipython notebook`** 来展示。 # # 安装好 **`Python`** 和相应的包之后,可以在命令行下输入: # # $ ipython notebook # # 来进入 **`ipython notebook`** 。 # ## 基本环境配置 # # - 安装 [Python3.5](https://www.python.org/downloads/release/python-351/) 或者 [Anaconda](https://www.continuum.io/downloads) # # # - **`Anaconda`** 更新环境 # # `conda update conda`
# `conda update anaconda`
# ## 参考 # - [Python 入门教程](http://python3-cookbook.readthedocs.io/zh_CN/latest/chapters/p01_data_structures_algorithms.html) # - [Python 3.5.1 documentation](https://docs.python.org/3/) # ## 目录 # # - [第一章 数据结构和算法](01 data structures and algorithms/01 data structures and algorithms.ipynb)
# - [1.1 解压序列赋值给多个变量](01 data structures and algorithms/01.01 unpack sequence into separate variables.ipynb)
# - [1.2 解压可迭代对象赋值给多个变量](01 data structures and algorithms/01.02 unpack elements from iterables.ipynb)
# - [1.3 保留最后N个元素](01 data structures and algorithms/01.03 keep last n items.ipynb)
# - [1.4 查找最大或最小的N个元素](01 data structures and algorithms/01.04 find largest or smallest n items.ipynb)
# - [1.5 实现一个优先级队列](01 data structures and algorithms/01.05 implement a priority queue.ipynb)
# - [1.6 字典中的键映射多个值](01 data structures and algorithms/01.06 map keys to multiple values in dict.ipynb)
# - [1.7 字典排序](01 data structures and algorithms/01.07 keep dict in order.ipynb)
# - [1.8 字典的运算](01 data structures and algorithms/01.08 calculating with dict.ipynb)
# - [1.9 查找两字典的相同点](01 data structures and algorithms/01.09 find commonalities in dicts.ipynb)
# - [1.10 删除序列相同元素并保持顺序](01 data structures and algorithms/01.10 remove duplicates from seq order.ipynb)
# - [1.11 命名切片](01 data structures and algorithms/01.11 naming slice.ipynb)
# - [1.12 序列中出现次数最多的元素](01 data structures and algorithms/01.12 determine most freqently items in seq.ipynb)
# - [1.13 通过某个关键字排序一个字典列表](01 data structures and algorithms/01.13 sort list of dicts by key.ipynb)
# - [1.14 排序不支持原生比较的对象](01 data structures and algorithms/01.14 sort objects without compare support.ipynb)
# - [1.15 通过某个字段将记录分组](01 data structures and algorithms/01.15 group records based on field.ipynb)
# - [1.16 过滤序列元素](01 data structures and algorithms/01.16 filter sequence elements.ipynb)
# - [1.17 从字典中提取子集](01 data structures and algorithms/01.17 extract subset of dict.ipynb)
# - [1.18 映射名称到序列元素](01 data structures and algorithms/01.18 map names to sequence elements.ipynb)
# - [1.19 转换并同时计算数据](01 data structures and algorithms/01.19 transform and reduce data same time.ipynb)
# - [1.20 合并多个字典或映射](01 data structures and algorithms/01.20 combine multiple map to single map.ipynb)
# # - [第二章 字符串和文本](02 strings and text/02 strings and text.ipynb)
# # # In[ ]: