Skip to content

Commit 7cd83ea

Browse files
committed
使用 mkdocs 制作电子书
1 parent 6fbbceb commit 7cd83ea

File tree

20 files changed

+289
-35
lines changed

20 files changed

+289
-35
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,6 @@ Session.vim
2222
.cache
2323
.tmp
2424
.idea
25+
26+
# mkdocs
27+
site/

6_算法分析/big_o.md

Lines changed: 0 additions & 31 deletions
This file was deleted.

README.md

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
## 痛点
99
- 讲 Python 数据结构和算法的资料很少,中文资料更少
1010
- 很多自学 Python 的工程师对基础不够重视,面试也发现很多数据结构和算法不过关,太多人挂在了基础的数据结构和算法上
11-
- 缺少工程应用场景下的讲解,很多讲算法的资料太『教科书化』
12-
- 很多培训班出来的同学或者自学的同学数据结构和算法比较薄弱,面试笔试很吃亏
11+
- 缺少工程应用场景下的讲解,很多讲算法的资料太『教科书化』。本书实现的代码工程上可用
1312

1413
## 作者简介
1514
目前就职于[知乎](https://www.zhihu.com/people/pegasus-wang/activities),从实习期间接触 Python 起一直从事 Python 网站后端开发,有一定 Python 的使用和实践经验。
@@ -74,7 +73,7 @@ Python 抽象程度比较高, 我们能用更少的代码来实现功能,同
7473
- 掌握 Python 基本语法,有过使用 Python 的经验。知道 class、module、yield 等
7574
- 基本的面向对象编程知识,会定义和使用 Python 中的类 (class)
7675
- 知道 Python 中的魔术方法,比如 `__len__` `__contains__`
77-
- 无需太多数学基础,仅在算法时间复杂度分析的时候会用到一些简单数学知识
76+
- 无需太多数学基础,仅在算法时间复杂度分析的时候会用到一些简单数学知识。对于学习基础算法,逻辑思维可能更重要一些
7877

7978
## 教材
8079
这里我参考过三本书:
@@ -159,3 +158,20 @@ Python 抽象程度比较高, 我们能用更少的代码来实现功能,同
159158
文字内容讲义放到 github 上,供大家免费查阅。
160159

161160
如果你觉得文字内容或者视频内容有错误,欢迎在 github 上提 issue 讨论,我会修正相关内容,防止产生误导。
161+
162+
163+
## 本电子书制作和写作方式
164+
使用 mkdocs 和 markdown 构建,使用 Python-Markdown-Math 完成数学公式
165+
166+
安装依赖:
167+
```sh
168+
pip install mkdocs # 制作电子书
169+
# https://stackoverflow.com/questions/27882261/mkdocs-and-mathjax/31874157
170+
pip install https://github.com/mitya57/python-markdown-math/archive/master.zip
171+
```
172+
173+
编写并查看:
174+
```sh
175+
mkdocs serve # 修改自动更新,http://localhost:8000 访问
176+
```
177+
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

3_链表/linked_list.md renamed to docs/3_链表/linked_list.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ class LinkedList(object):
3131
[root] -> [node0] -> [node1] -> [node2]
3232
"""
3333
```
34-
实现我们会在视频中用画图来模拟并且手动代码实现,代码里我们会标识每个步骤的时间复杂度.
34+
实现我们会在视频中用画图来模拟并且手动代码实现,代码里我们会标识每个步骤的时间复杂度。这里请高度集中精力,
35+
虽然链表的思想很简单,但是想要正确写对链表的操作代码可不容易,稍不留神就可能丢失一些步骤。
36+
这里我们还是会用简单的单测来验证代码是否按照预期工作。
3537

3638
来看下时间复杂度:
3739

0 commit comments

Comments
 (0)