Skip to content
Branch: master
Find file History
Latest commit 41311bb May 16, 2019
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
00.cover.md use absolute image url in markdown files Apr 15, 2019
01.preface.md
02.proof-of-work.md Yukie git.basic.tutorial #643 Apr 15, 2019
Part.1.A.better.teachyourself.md 教书,没上过师范课程 修改 #650 Apr 15, 2019
Part.1.B.why.start.from.learning.coding.md 134bfc3 Apr 22, 2019
Part.1.C.must.learn.sth.only.by.reading.md sync markdown files May 15, 2019
Part.1.D.preparation.for.reading.md linted. code in .ipynb files re-run. Apr 8, 2019
Part.1.E.1.entrance.md use absolute image url in markdown files Apr 15, 2019
Part.1.E.2.values-and-their-operators.md From wilton #756 May 10, 2019
Part.1.E.3.controlflow.md use absolute image url in markdown files Apr 15, 2019
Part.1.E.4.functions.md use absolute image url in markdown files Apr 15, 2019
Part.1.E.5.strings.md line:2709 “换成”修改为“转换成” #760 May 10, 2019
Part.1.E.6.containers.md From wangpeiran 8 #685 Apr 18, 2019
Part.1.E.7.files.md By tymcmf #778 May 16, 2019
Part.1.F.deal-with-forward-references.md From wangpeiran 11 #697 Apr 22, 2019
Part.1.G.The-Python-Tutorial-local.md sync markdown files May 15, 2019
Part.2.A.clumsy-and-patience.md sync markdown files May 15, 2019
Part.2.B.deliberate-practicing.md From wangpeiran 14 #702 Apr 22, 2019
Part.2.C.why-start-from-writing-functions.md linted. code in .ipynb files re-run. Apr 8, 2019
Part.2.D.1-args.md linted. code in .ipynb files re-run. Apr 8, 2019
Part.2.D.2-aargs.md update markdown emphasis mark from _xxx_ to *xxx* Apr 7, 2019
Part.2.D.3-lambda.md linted. code in .ipynb files re-run. Apr 8, 2019
Part.2.D.4-recursion.md From wangpeiran 15 #708 Apr 22, 2019
Part.2.D.5-docstrings.md linted. code in .ipynb files re-run. Apr 8, 2019
Part.2.D.6-modules.md From wangpeiran 16 #709 May 3, 2019
Part.2.D.7-tdd.md linted. code in .ipynb files re-run. Apr 8, 2019
Part.2.D.8-main.md From wangpeiran 19 #714 May 3, 2019
Part.2.E.deliberate-thinking.md From wangpeiran 18 #711 May 3, 2019
Part.3.A.conquering-difficulties.md use absolute image url in markdown files Apr 15, 2019
Part.3.B.1.classes-1.md sync markdown files May 15, 2019
Part.3.B.2.classes-2.md PR_12_addTipOfPicAboutScope May 8, 2019
Part.3.B.3.decorator-iterator-generator.md From wangpeiran 24 #749 May 10, 2019
Part.3.B.4.regex.md From wangpeiran 22 #735 Apr 30, 2019
Part.3.B.5.bnf-ebnf-pebnf.md use absolute image url in markdown files Apr 15, 2019
Part.3.C.breaking-good-and-bad.md use absolute image url in markdown files Apr 15, 2019
Part.3.D.indispensable-illusion.md By yaoyouzhong #684 Apr 18, 2019
Part.3.E.to-be-thorough.md +“是” #626 Apr 13, 2019
Part.3.F.social-selfteaching.md use absolute image url in markdown files Apr 15, 2019
Part.3.G.the-golden-age-and-google.md use absolute image url in markdown files Apr 15, 2019
Part.3.H.prevent-focus-drifting.md 早些年我,…… -> 早些年,我…… #603 Apr 9, 2019
Q.good-communiation.md From wangpeiran 23 #748 May 10, 2019
R.finale.md use absolute image url in markdown files Apr 15, 2019
README.md use absolute image url in markdown files Apr 15, 2019
S.whats-next.md use absolute image url in markdown files Apr 15, 2019
T-appendix.editor.vscode.md use absolute image url in markdown files Apr 15, 2019
T-appendix.git-introduction.md use absolute image url in markdown files Apr 15, 2019
T-appendix.jupyter-installation-and-setup.md Update T-appendix.jupyter-installation-and-setup.ipynb #741 May 3, 2019
T-appendix.symbols.md use absolute image url in markdown files Apr 15, 2019
TOC.md fix typo Apr 14, 2019

README.md

the-craft-of-selfteaching

One has no future if one couldn't teach themself[1].

自学是门手艺

没有自学能力的人没有未来

作者:李笑来

特别感谢霍炬@virushuo)、洪强宁@hongqn) 两位良师诤友在此书写作过程中给予我的巨大帮助!

# pseudo-code of selfteaching in Python

def teach_yourself(anything):
    while not create():
        learn()
        practice()
    return teach_yourself(another)

teach_yourself(coding)

有兴趣帮忙的朋友,请先行阅读 如何使用 Pull Request 为这本书校对

目录

关于 .ipynb 文件转换为 .md 文件的备注:

# 需提前安装 nbconvert 插件,Terminal 下执行:
$ jupyter nbconvert --to markdown *.ipynb

而后将所有 `.md` 文件移到 `markdown/` 目录之下 —— 除 `README.md` 文件之外

`README.md` 文件复制一份到 `markdown/` 目录之下,而后编辑为当前文件

# 需使用 VSCode 批量 Find and Replace:
将所有 (https://raw.githubusercontent.com/selfteaching/the-craft-of-selfteaching/master/images/ 替换为 (https://raw.githubusercontent.com/selfteaching/the-craft-of-selfteaching/master/images/
将所有 (Part.1.A.better.teachyourself_files/ 替换为 (https://raw.githubusercontent.com/selfteaching/the-craft-of-selfteaching/master/images/
将所有 (Part.1.E.6.containers_files/ 替换为 (https://raw.githubusercontent.com/selfteaching/the-craft-of-selfteaching/master/images/
将所有 ```\n\n 替换为 ```\n
将所有	\n\n```	替换为 \n```
将所有 .ipynb) 替换为 .md)

`Part.1.E.3.controlflow.md` 文件中有过长的 output 需要编辑
`Part.1.E.7.files.md` 文件中有过长的 output 需要编辑

推荐读者在自己的浏览器上安装 Stylus 这类终端 CSS 定制插件,Chrome/Firefox/Opera 都支持 Stylus 插件。以便拥有更好的阅读体验。以下 gif 图片展示的是使用自定义 css 前后的效果:

我用的 Stylus 定制 CSS(针对 github.com)是这样的:

.markdown-body {font-family: "PingFang SC";}
strong {color:#6392BF;}
em {color: #A9312A; font-style: normal !important;}
table {font-size: 95% !important;}


.CodeMirror, pre {font-size: 90%;}
pre {
    padding: 10px 25px;
    background-color: #fafafa;
    border-left: 4px solid #dadada;
    border-radius: 10px;
}

pre code {
    background-color: #fafafa;
}

h1 code,
h2 code,
h3 code,
h4 code,
p code, 
li code,
blockquote p code, 
blockquote li code,
td code {
    background-color: #f6f6f6;
    font-size: 90%;
    color:#2e2e2e;
    padding: 4px 4px;
    margin: 0 8px;
    box-shadow: 0px 1px 2px 0px rgba(0,0,0,0.2);
    border-radius: 4px;
}
}

我写的内容里,为了重点突出,特别定制了 strongem 两个元素的显示,让它们以不同的颜色展示;又因为中文并不适合斜体展示,所以,把 emfont-style 设定为 normal……


本书的版权协议为 CC-BY-NC-ND license

CC-BY-NC-ND


脚注

[1]'Themselves' or 'themself'?-- Oxford Dictionary

↑Back to Content↑

You can’t perform that action at this time.