Skip to content

Commit bed232d

Browse files
committed
rst
1 parent 4699535 commit bed232d

15 files changed

Lines changed: 205 additions & 5 deletions

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ batch_camel(['student_id', 'student\tname', 'student-add']) #['studentId', 'stud
497497

498498

499499

500-
#### 八、绘图
500+
#### 八、turtle 绘图
501501

502502
1 [turtle绘制奥运五环图](./md/turtle绘制奥运五环图.md)
503503
结果:
@@ -749,7 +749,7 @@ plt.show()
749749
```
750750
![散点图](./img/scatter-plt.png)
751751

752-
#### Plotly绘图
752+
#### 十三 Plotly绘图
753753

754754
1 绘制柱状图+折线图
755755

@@ -788,15 +788,15 @@ fig.show()
788788

789789

790790

791-
#### 十三、PyQt
791+
#### 十四、PyQt
792792

793793
1 [使用PyQt打造一款自己的计算器,仅有100行代码](./src/calculator)
794794

795795
![计算器](./img/calculator.png)
796796

797797

798798

799-
#### 十四、迭代器
799+
#### 十五、迭代器
800800

801801
1 实现一个递减迭代器
802802

@@ -825,7 +825,7 @@ print(list(descend_iter))
825825

826826
2) `raise StopIteration`:通过 raise 中断程序,必须这样写
827827

828-
#### 十五 装饰器
828+
#### 十六 装饰器
829829
[测试函数执行时间的函数装饰器](./md/测试函数执行时间的函数装饰器.md)
830830
```python
831831
import time

rst/chapters/p03_dict.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
=============================
2+
第三章:字典
3+
=============================
4+
5+
Python的字典(dict)对象,通过一对花括号(`{}`)创建,是一种使用最频繁的数据类型。这一章总结基于字典的各种小例子。
6+
7+
8+
9+
10+
.. toctree::
11+
:maxdepth: 1
12+
:glob:
13+
14+
../ch03/*

rst/chapters/p04_set.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
=============================
2+
第四章:集合
3+
=============================
4+
5+
Python的集合(set)对象,通过一对中括号(`(,)`)创建,是一种使用最频繁的数据类型。这一章总结基于列表的各种小例子。
6+
7+
8+
9+
10+
.. toctree::
11+
:maxdepth: 1
12+
:glob:
13+
14+
../ch04/*

rst/chapters/p05_file_operate.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
=============================
2+
第五章:文件操作
3+
=============================
4+
5+
Python文件操作,涉及IO操作,常用的open,read,print等
6+
7+
8+
9+
10+
.. toctree::
11+
:maxdepth: 1
12+
:glob:
13+
14+
../ch02/*
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
=============================
2+
第六章:字符串和正则
3+
=============================
4+
5+
Python字符串类型 `` str ``,里面封装很多好用的方法,比如 `` strip `` , `` split ``, `` join `` , `` find ``
6+
等。查询提取网页数据中的某些关键字, `` re `` 正则模块能高效处理这些工作。
7+
8+
9+
10+
11+
.. toctree::
12+
:maxdepth: 1
13+
:glob:
14+
15+
../ch06/*

rst/chapters/p07_plot.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
=============================
2+
第七章:绘图
3+
=============================
4+
5+
Python的绘图库常用的有 `` matplotlib ``, `` plotly ``, `` seaborn ``
6+
还有能展示绘图轨迹的库 ``turtle``, 绘制云图的 ``wordcloud``,本章总结这些库绘图的最常用用法。
7+
8+
9+
10+
11+
.. toctree::
12+
:maxdepth: 1
13+
:glob:
14+
15+
../ch07/*

rst/chapters/p08_generator.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
=============================
2+
第八章:生成器
3+
=============================
4+
5+
Python生成器(generator)可以优雅的减少内存使用,本章总结生成器常用例子。
6+
7+
8+
9+
10+
.. toctree::
11+
:maxdepth: 1
12+
:glob:
13+
14+
../ch08/*

rst/chapters/p09_iterator.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
=============================
2+
第九章:迭代器
3+
=============================
4+
5+
Python迭代器(iterator)是使用频率很高的数据类型,模块 ``collections.abc`` 封装了 `` Iterable`` 可迭代类型
6+
对象。
7+
8+
9+
10+
11+
.. toctree::
12+
:maxdepth: 1
13+
:glob:
14+
15+
../ch09/*

rst/chapters/p10_decorator.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
=============================
2+
第十章:装饰器
3+
=============================
4+
5+
Python装饰器(decorator)使用符号 ``@`` 调用定制的装饰器,类内定义属性用的装饰器: ``@property``,
6+
本章介绍装饰器的一些小例子。
7+
8+
9+
10+
11+
.. toctree::
12+
:maxdepth: 1
13+
:glob:
14+
15+
../ch10/*

rst/chapters/p11_numpy.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
=============================
2+
第十一章:Numpy
3+
=============================
4+
5+
Numpy是比Python处理数值数组更高效的工具包,本章介绍Numpy常用的小例子。
6+
7+
8+
9+
10+
.. toctree::
11+
:maxdepth: 1
12+
:glob:
13+
14+
../ch11/*

0 commit comments

Comments
 (0)