Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
186 commits
Select commit Hold shift + click to select a range
ebabd82
10.1
Mar 3, 2016
d087895
10.2 has been completed
Mar 3, 2016
049822c
All before 10.6 has been done
Mar 3, 2016
dd60e4a
translaotion of chpt 12 done over half
SeikaScarlet Mar 3, 2016
5fa9a4f
gitignore file updated for TeX
SeikaScarlet Mar 3, 2016
e47cc0a
updated from remote upstream master
SeikaScarlet Mar 3, 2016
0c7f6a6
Far to 10.7 has been completed
Mar 3, 2016
faa3ba0
up to 10.8 has been completed
Mar 3, 2016
d1e82a9
up to 10.11 has been completed
Mar 3, 2016
643c7d3
Chapter 6 finisied
theJian Mar 4, 2016
2aa1ca9
Merge remote-tracking branch 'refs/remotes/bingjin/master'
theJian Mar 4, 2016
34ac53c
Chapter 11 taken by theJian
theJian Mar 4, 2016
7befaae
Revert "Chapter 11 taken by theJian"
theJian Mar 4, 2016
4637f40
Chapter 11 taken by theJian
theJian Mar 4, 2016
75c6982
Merge pull request #8 from theJian/master
earlgrey0103 Mar 4, 2016
512f7f2
Merge pull request #9 from theJian/Chapter-11
earlgrey0103 Mar 4, 2016
7ce9dbe
all of 10th chapter are done
xuanyuwang Mar 4, 2016
4bcd146
insert chinese to 10-lists.rst
xuanyuwang Mar 4, 2016
19e371f
The translation of chapter 10 has been done
xuanyuwang Mar 4, 2016
150c52c
fix chap01 mistake and reviewed chap02
earlgrey0103 Mar 4, 2016
d22ffad
added source rst files for the rest chapters and updated README
earlgrey0103 Mar 4, 2016
e31616f
ch 10 had been done, and add terms after their correspondingly transl…
xuanyuwang Mar 5, 2016
07276e3
Merge pull request #10 from obserthinker/master
earlgrey0103 Mar 5, 2016
42e9945
Merge remote-tracking branch 'refs/remotes/bingjin/master'
theJian Mar 5, 2016
c285c0e
Merge remote-tracking branch 'refs/remotes/bingjin/master'
theJian Mar 5, 2016
089f7c3
Merge remote-tracking branch 'refs/remotes/origin/master' into Chapte…
theJian Mar 5, 2016
5a95fa2
chapter 11 done.
theJian Mar 5, 2016
fd37fbe
Merge pull request #11 from theJian/Chapter-11
earlgrey0103 Mar 5, 2016
8280439
chap09
Mar 6, 2016
c56daf3
chap13-applying
Mar 6, 2016
eda95f0
chap13-done
Mar 6, 2016
a79960e
Merge pull request #12 from iphyer/master
earlgrey0103 Mar 7, 2016
51f6644
Merge pull request #13 from iphyer/chap13
earlgrey0103 Mar 7, 2016
5ef21f5
认领第十五章
xuanyuwang Mar 7, 2016
a469b80
认领第十四章
xuanyuwang Mar 7, 2016
355f315
Merge pull request #14 from obserthinker/master
earlgrey0103 Mar 7, 2016
7f59acf
rename chapter 17 file
earlgrey0103 Mar 7, 2016
ce6725a
Merge branch 'master' of https://github.com/bingjin/ThinkPython2-CN
earlgrey0103 Mar 7, 2016
f419705
chap15-applying
Mar 7, 2016
cb760c8
Merge pull request #15 from iphyer/master
earlgrey0103 Mar 7, 2016
7181cb8
chap 4 progress
earlgrey0103 Mar 7, 2016
d674f54
Merge branch 'master' of https://github.com/bingjin/ThinkPython2-CN
earlgrey0103 Mar 7, 2016
e1b6de0
chap 4 progress
earlgrey0103 Mar 7, 2016
77daef7
chap04 pending review, added two images
earlgrey0103 Mar 8, 2016
35010ec
chapter 14 had been done
xuanyuwang Mar 8, 2016
ef55afe
chapter 14 had been done
xuanyuwang Mar 8, 2016
ae81e06
chapter 14 had been done
xuanyuwang Mar 8, 2016
c650cf1
Merge remote-tracking branch 'upstream/master'
xuanyuwang Mar 8, 2016
dfce942
reviewed chapter 3
earlgrey0103 Mar 8, 2016
5c6d933
Merge pull request #16 from obserthinker/master
earlgrey0103 Mar 8, 2016
eb503b8
apply chapter16
cxyfreedom Mar 9, 2016
9b51082
Merge pull request #17 from cxyfreedom/master
earlgrey0103 Mar 9, 2016
cd8e208
all rest chapters taken
earlgrey0103 Mar 9, 2016
9c78217
chap15-finished
Mar 9, 2016
8d1ada7
Merge pull request #18 from iphyer/chap15
earlgrey0103 Mar 9, 2016
e05e8da
chpater16 finished.
cxyfreedom Mar 10, 2016
b1cfdeb
fix some format problem.
cxyfreedom Mar 10, 2016
a57fa4e
Merge pull request #19 from cxyfreedom/master
earlgrey0103 Mar 10, 2016
2508af4
finish chp.8
xpgeng Mar 10, 2016
4c51b2d
review chap 4, small progress
earlgrey0103 Mar 11, 2016
f490002
proofread chap04
earlgrey0103 Mar 12, 2016
fce707c
update README, fix typos
earlgrey0103 Mar 13, 2016
2db4f6a
update README
earlgrey0103 Mar 13, 2016
5ee61e0
chpt12 done
SeikaScarlet Mar 13, 2016
1c7a58b
started reviewing chap 5
earlgrey0103 Mar 13, 2016
46c6d80
reviewing chap5, more progress
earlgrey0103 Mar 14, 2016
b0287d4
Merge branch 'master' of https://github.com/bingjin/ThinkPython2-CN
SeikaScarlet Mar 14, 2016
d8a6a5f
updated with remote master
SeikaScarlet Mar 14, 2016
95dbbd7
book folder added for TeX
SeikaScarlet Mar 14, 2016
325346d
add some translation and modify sth
xpgeng Mar 14, 2016
cbc76da
Merge pull request #21 from xpgeng/master
earlgrey0103 Mar 15, 2016
ef1c4d9
reviewed chap 5
earlgrey0103 Mar 15, 2016
c9328c0
Merge branch 'master' of https://github.com/bingjin/ThinkPython2-CN
earlgrey0103 Mar 15, 2016
1f7a649
delte chap 8 in ref
earlgrey0103 Mar 15, 2016
da1c4d3
add contributors to the bottom of rst files
earlgrey0103 Mar 15, 2016
107051e
Chapter 7 part 1
lroolle Mar 15, 2016
79d0e75
Merge remote-tracking branch 'refs/remotes/bingjin/master'
lroolle Mar 15, 2016
c0e36b4
chn translation of chapter 2 added, fig folder under book removed, li…
SeikaScarlet Mar 16, 2016
42a0ba1
compiled pdf added
SeikaScarlet Mar 16, 2016
e3e2eeb
Finish Translating Chapter 7
lroolle Mar 16, 2016
2fd0c45
Merge pull request #22 from lroolle/master
earlgrey0103 Mar 16, 2016
abcbc7b
Updated README, chapter 7 is finished by lroolle, previous translator
earlgrey0103 Mar 16, 2016
db33c08
fix mistake in chap 04
earlgrey0103 Mar 16, 2016
6c30c93
Merge branch 'master' of https://github.com/bingjin/ThinkPython2-CN
earlgrey0103 Mar 17, 2016
bf4ffb7
reviewing chap 6
earlgrey0103 Mar 18, 2016
2c9b3fd
working on layout of chapter 3
SeikaScarlet Mar 18, 2016
f4362f5
update 6 and others
earlgrey0103 Mar 19, 2016
be45b1b
update 7
earlgrey0103 Mar 22, 2016
5656110
chn translation of chpt 3,4 added
SeikaScarlet Mar 23, 2016
8d07bd6
chpt.tex separated from the book
SeikaScarlet Mar 23, 2016
8082bf8
updated from upstream master
SeikaScarlet Mar 23, 2016
28aea5d
updated with upstream master
SeikaScarlet Mar 23, 2016
a6b5e13
chn translation of chpt 6 added
SeikaScarlet Mar 24, 2016
44662e5
Merge pull request #23 from SeikaScarlet/master
earlgrey0103 Mar 24, 2016
4970e28
reviewed chap 8
earlgrey0103 Mar 27, 2016
6657959
fix chap 4 merge mistake
earlgrey0103 Mar 27, 2016
cf8da26
contributors added
earlgrey0103 Mar 27, 2016
020c7e4
fix ref
earlgrey0103 Mar 27, 2016
7728c5d
chapter 0-3 (english) hided
SeikaScarlet Mar 29, 2016
5992bdf
Merge pull request #24 from SeikaScarlet/master
earlgrey0103 Mar 30, 2016
d50bb47
README.md updated, section of TeX-PDF added
SeikaScarlet Mar 30, 2016
b657c91
chn translation of chapter 7 added
SeikaScarlet Mar 30, 2016
a8f4c4e
reviewing chap 9
earlgrey0103 Mar 30, 2016
b34b7ef
Merge branch 'master' of https://github.com/bingjin/ThinkPython2-CN
earlgrey0103 Mar 30, 2016
0313926
minor update of chpt 20
SeikaScarlet Mar 31, 2016
a4af219
Merge pull request #25 from SeikaScarlet/master
earlgrey0103 Mar 31, 2016
b7a035f
chn translation of chpt 8 added to TeX
SeikaScarlet Mar 31, 2016
e3c6c7b
reviewing chap 9, nearly done
earlgrey0103 Mar 31, 2016
41cee3a
minor update of chapter 1 and 2
SeikaScarlet Mar 31, 2016
dfc6678
翻译错误更正
Haojia521 Apr 4, 2016
7ba68c2
错别字更正
Haojia521 Apr 4, 2016
8aeb515
Merge pull request #26 from Haojia521/master
earlgrey0103 Apr 4, 2016
b381680
reviewing chap 10
earlgrey0103 Apr 4, 2016
4be2c9d
Merge branch 'master' of https://github.com/bingjin/ThinkPython2-CN
earlgrey0103 Apr 4, 2016
12043a2
reviewed chap 10
earlgrey0103 Apr 5, 2016
ba962c5
chpt 5 done
SeikaScarlet Apr 7, 2016
b60dcb5
uptodate with upstream master
SeikaScarlet Apr 7, 2016
bdc489a
minor bug of readme.md fixed
SeikaScarlet Apr 7, 2016
4340dca
minor updates
SeikaScarlet Apr 8, 2016
da92252
Merge pull request #28 from SeikaScarlet/master
earlgrey0103 Apr 8, 2016
25280f4
reviewed chap 11
earlgrey0103 Apr 10, 2016
443f1eb
fix typo
earlgrey0103 Apr 10, 2016
6a1ec87
update chap 12 rst from tex
earlgrey0103 Apr 13, 2016
8d43008
update chap 12
earlgrey0103 Apr 16, 2016
b625ffa
reviewed chap 13
earlgrey0103 Apr 20, 2016
b30f1a7
chpt 9 tex
SeikaScarlet Apr 20, 2016
03a45db
chpt 9 TeXing
SeikaScarlet Apr 20, 2016
566e153
updated with upstream master
SeikaScarlet Apr 20, 2016
4707afe
update chap 14
earlgrey0103 Apr 23, 2016
ac26231
fix typo
earlgrey0103 Apr 24, 2016
2709005
reviewing chap 15
earlgrey0103 Apr 28, 2016
0c19d6c
chap 15 pending final touch
earlgrey0103 Apr 28, 2016
f9f7e57
Merge branch 'master' of https://github.com/bingjin/ThinkPython2-CN
SeikaScarlet Apr 29, 2016
ebc8f27
chpt_9 TeX done
SeikaScarlet Apr 29, 2016
7c533c2
update chap 15
earlgrey0103 Apr 29, 2016
df3e102
chpt_10 TeX done, minor update of other chpts
SeikaScarlet May 3, 2016
2e3ac6d
chpt_11 TeX done
SeikaScarlet May 3, 2016
a343f0b
reviewing chap 6
earlgrey0103 May 3, 2016
ae74d54
updated chap 15
earlgrey0103 May 3, 2016
648c9e7
synctex.gz(busy).bts removed
SeikaScarlet May 11, 2016
be13f79
chapter 13 TeXing done !
SeikaScarlet May 11, 2016
061b72b
README.md prj porgress updated, minor updates for other files
SeikaScarlet May 12, 2016
1d3f5aa
updated with upstream master before merge
SeikaScarlet May 12, 2016
e52b3ab
chpt 14 TeX done!
SeikaScarlet May 12, 2016
3440242
updating chap 17
earlgrey0103 May 12, 2016
b92d41a
chpt 15 TeX done!
SeikaScarlet May 13, 2016
f07603b
updated with upstream master
SeikaScarlet May 13, 2016
9f6403a
finished chap 17
earlgrey0103 May 14, 2016
6be4f84
Merge pull request #30 from SeikaScarlet/master
earlgrey0103 May 14, 2016
9ac53f0
fix mistake
earlgrey0103 May 16, 2016
2de77e4
finished chap 18
earlgrey0103 May 21, 2016
a2cb337
fix typos
earlgrey0103 May 21, 2016
1e44889
chapter Algorithm translation done
SeikaScarlet Jun 3, 2016
37c575d
chap 20
earlgrey0103 Jun 11, 2016
e1f064d
update“
SeikaScarlet Jun 12, 2016
746b3c9
update with remote master
SeikaScarlet Jun 12, 2016
5262f25
chpt 6-8 chn done, en commented, pdf updated
SeikaScarlet Jun 13, 2016
9d858de
chpt 10,11 eng commented, pdf updated
SeikaScarlet Jun 14, 2016
d970bc4
Merge pull request #31 from SeikaScarlet/master
earlgrey0103 Jun 14, 2016
4ae2d15
chpt 14,15,16 of TeX done
SeikaScarlet Jun 16, 2016
2adcbf3
chap21 update
earlgrey0103 Jun 19, 2016
9e6d36d
update for pdf output
earlgrey0103 Jun 28, 2016
699c26a
mac pdf ok
earlgrey0103 Jun 28, 2016
0c03b78
update checkup
SeikaScarlet Jun 30, 2016
71dd39f
Merge branch 'master' of https://github.com/bingjin/ThinkPython2-CN
SeikaScarlet Jun 30, 2016
1b02e19
working on chpt 17
SeikaScarlet Jun 30, 2016
f8d4bf8
chapter 17 Chinese done
SeikaScarlet Jun 30, 2016
37b999f
fix formatting
earlgrey0103 Jun 30, 2016
446d73d
Merge branch 'master' of https://github.com/bingjin/ThinkPython2-CN
earlgrey0103 Jun 30, 2016
01d1eef
chapter 21 chinese proofreading and edit in TeX
SeikaScarlet Jul 1, 2016
28365cc
chapter 18 chinese of TeX done
SeikaScarlet Jul 1, 2016
c8a85c3
chpt 19 chinese of TeX done
SeikaScarlet Jul 2, 2016
4c3e928
chpt 20 chinese of TeX done
SeikaScarlet Jul 2, 2016
4bf790e
chapter of casestudy english removed, final touching
SeikaScarlet Jul 2, 2016
85658f6
chapter 12 proofreading
SeikaScarlet Jul 3, 2016
e6718d7
chapter files renamed
SeikaScarlet Jul 3, 2016
2a4a8a0
proofreading
SeikaScarlet Jul 5, 2016
aea3988
fix
earlgrey0103 Jul 8, 2016
f6e83d8
fix conflict
earlgrey0103 Jul 8, 2016
ba1a45f
final fix, pending small improvements
earlgrey0103 Jul 9, 2016
d0aae51
make pdf for merging
SeikaScarlet Jul 9, 2016
db93a8d
Proofreading
SeikaScarlet Jul 21, 2016
0592b2b
pull from remote upstream master
SeikaScarlet Jul 21, 2016
8602eb6
Merge pull request #33 from SeikaScarlet/master
earlgrey0103 Jul 22, 2016
b6204bb
change readme
earlgrey0103 Sep 8, 2016
9589d8f
Update README.md
earlgrey0103 Apr 19, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,19 @@ __pycache__/
.Python

tmp/


# tex related files
*.fdb_latexmk
*.fls
*.idx
*.ilg
*.ind
*.log
*.out
*.toc
*.aux
*.synctex.gz

build/

31 changes: 31 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
FROM python:3.3
ENV PYTHONUNBUFFERED 1
RUN mkdir /doc
ADD . /doc
WORKDIR /doc

RUN apt-get update
RUN apt-get install -y texlive
RUN apt-get install -y texlive-xetex
RUN apt-get install -y texlive-lang-cjk
RUN apt-get install -y texlive-latex-recommended
RUN apt-get install -y texlive-latex-extra
RUN apt-get install -y texlive-fonts-recommended
RUN apt-get install -y texlive-base
RUN apt-get install -y fonts-wqy-zenhei
RUN apt-get remove -y \
texlive-fonts-recommended-doc \
texlive-latex-base-doc \
texlive-latex-extra-doc \
texlive-latex-recommended-doc \
texlive-pictures-doc \
texlive-pstricks-doc \
&& apt-get clean

RUN pip install \
sphinx \
sphinx_rtd_theme \
sphinx_bootstrap_theme \
alabaster

ENTRYPOINT ["/bin/bash"]
113 changes: 29 additions & 84 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,99 +1,44 @@
# 《Think Python 2ed》最新版中文翻译

## 贡献者
本书中文翻译已经完结,感谢各位贡献者的参与和大家的关注及支持。

希望参与翻译的朋友,请提PR,直接在下面的表格中对应的章节(还未注明译者的章节)处加上自己的名字及Github主页链接。
贡献者名单如下:

| 章节 | 译者 |
|------|------|
| [前言](./source/00-preface.rst) | [@bingjin](https://github.com/bingjin) |
| [第一章](./source/01-the-way-of-the-program.rst) | [@bingjin](https://github.com/bingjin) |
| [第二章](./source/02-variables-expressions-and-statements.rst) | [@bingjin](https://github.com/bingjin) |
| [第三章](./source/03-functions.rst) | [@bingjin](https://github.com/bingjin) |
| [第四章](./source/04-case-study-interface-design.rst) | [@bingjin](https://github.com/bingjin) |
| [第五章](./source/05-conditionals-and-recursion.rst) | [@ipyher](https://github.com/iphyer) |
| [第六章](./source/06-fruitful-functions.rst) | [@theJian](https://github.com/thejian) |
| [第七章](./source/07-iterations.rst) | [@F-Karl](https://github.com/F-Karl) |
| [第八章](./source/08-strings.rst) | [@xpgeng](https://github.com/xpgeng) |
| [第九章](./source/09-case-study-word-play.rst) | [@ipyher](https://github.com/iphyer) |
| [第十章](./source/10-lists.rst) | [@obserthinker](https://github.com/obserthinker) |
| 第十一章 | |
| 第十二章 | [@SeikaScarlet](https://github.com/SeikaScarlet) |
| 第十三章 | |
| 第十四章 | |
| 第十五章 | |
| 第十六章 | |
| 第十七章 | |
| 第十八章 | |
| 第十九章 | |
| 第二十章 | |
| 第二十一章 | |
- [@bingjin](https://github.com/bingjin)
全书校对,完成第1-4、17-21章的翻译。
- [@ipyher](https://github.com/iphyer)
完成第5、9、13、15章的翻译。
- [@theJian](https://github.com/thejian)
完成第6、11章的翻译。
- [@lroolle](https://github.com/lroolle)
完成第7章的翻译。
- [@xpgeng](https://github.com/xpgeng)
完成第8章的翻译。
- [@obserthinker](https://github.com/obserthinker)
完成第10、14章的翻译。
- [@SeikaScarlet](https://github.com/SeikaScarlet)
完成第12章的翻译,独自完成全书TEX版的制作和校对。
- [@cxyfreedom](https://github.com/cxyfreedom)
完成第16章的翻译。

最终校对将由我自己完成
本书目前托管在[编程派网站](https://codingpy.com/books/thinkpython2/)

本书翻译完成后,我会将最终的文档托管在[编程派网站](http://codingpy.com),并提供PDF等其他格式的分享链接
使用 Sphinx 制作的 PDF、EPUB 等电子版的分享链接为:http://pan.baidu.com/s/1eRZOrHC。 提取码: n24y

## 编程派站长的自我介绍
TEX 精校版 PDF 的分享链接为:https://pan.baidu.com/s/1pLiwSAn。

我是一名自学Python的编程爱好者。之所以说是爱好者,是因为我不是计算机专业毕业的。我的第一个单位是一家媒体,因为工作关系对当时新闻界流行的数据视觉化十分感兴趣,从《鲜活的数据》一书中了解到Python编程语言。而我使用的第一本教材,就是Allen Downey的《Think Python》,副标题叫“如何像计算机科学家一样思考”
如果你觉得这本书对你有帮助,可以考虑扫描下面的二维码,打赏我一杯咖啡

后来,我到了一家互联网公司,接触运营工作。我也利用业余时间开发出了自己的网站——[编程派](http://codingpy.com),而网站的定位就是专注Python编程,这也是网站名称和网站域名的由来:“编程派”中的“派”字,取自Python前两个字母的发音;codingpy,则是coding python的缩略。了解Python的朋友都知道,Python脚本的默认文件名后缀就是`.py`。

搭建“编程派”网站(后来还开通了“编程派”微信订阅号和今日头条号)的目的,就是为了能够让更多的人了解Python语言,更快地获取国外的Python教程和资源,一起交流、学习Python。因为我相信,[每个人都值得学习一点编程知识](http://codingpy.com/article/10-reasons-all-us-normal-people-should-learn-code/),而在我看来,最好的入门语言就是Python。

## 为什么想要翻译一本书?

呃,其实我是语言类专业出身的,所以难免会有想要翻译一本书的冲动,可惜还没有出版社请我去翻书。所以只有自己上啦。

另外,这四个多月来通过网站和微信号,已经和大家分享了近百篇原创编译的Python教程,很多都得到了各大技术网站的转载。虽然大家在阅读文章的时候,可能并不太会注意“编程派”这个名字,但能够帮助到更多的人,还是不错的。但是这些原创编译的教程存在一个问题,就是各自是不关联的,而且也有一定的难度,对于完全零基础的人来说,根本没有什么卵用。

所以,我想成系列地与大家分享文章,而我最想帮助的人,就是那些零编程基础的朋友。因此,最适合的系列文章莫过于一本Python入门教材啦。

## 为什么选择《Think Python》

选择《Think Python》,一是因为它是我自己入门使用的第一本教材;二是,它确实非常浅显易懂,把很多概念用非常朴实的话进行了解释。至少,当时零基础的我,看这本书时没有大的障碍。

这和作者在设计、编写此书时的出发点密不可分。你可以在本书的“序言”部分(今天微信推送的另一篇文章),看到更加详细的解释。

## 为什么翻译Python 3版?

此书已经有了Python 2版,为什么还要更新到Python 3呢?

(本书最新版与此前版本的区别,请看“序言”部分。)

这是因为Python 3才是Python的未来。Python之父Guido van Rossum早就坚决指出,不会再延长Python 2的支持协议。更具体一点说,就是到2020年时,Python核心开发团队就会停止对Python 2.7的开发、维护工作。而且,他们也早就不再往2.7版中添加新特性了。

虽然现在很多公司还在使用2.7,从Python 2迁移到Python 3的过程也非常的艰难,但是可以肯定的是,Python 3才是Python的未来!

所以,我们需要Python 3版的《Think Python》。

(另外一个原因,当然是因为Python 2版的已经有中译本,而且已经出版啦。。。本书在翻译过程中,会参考[车万翔老师组织翻译的Python 2版](https://github.com/carfly/thinkpython-cn)。)

## 微信放送计划

本书最新版一共21章,我目前的计划是一周放送两章(视章节长短和翻译进度进行调整),尽量不将时间拖得太长。所有译文将在微信公众号首发。

微信放送安排如下:

- 周三早10点放送一个章节
- 周六早10点再放送下一章

中间会穿插一些其他的Python教程和资源推送。如果大家希望能在微信群交流学习心得 ,可以加我的个人微信号,说明希望加群交流。

## 支持本书的翻译计划

如果你也喜欢这本书,喜欢Python编程,希望你能够支持本书最新版的翻译工作。

支持的方式有很多种,你可以将本书的翻译计划告诉想学编程的朋友,并推荐本书。你也可以关注“编程派”的微信订阅号,将最新的译文分享给更多的人。甚至,你还可以联系我,加入到这本书的翻译工作中来。
![赞助编程派的翻译计划](http://ww1.sinaimg.cn/mw690/006faQNTgw1f1g1gf903aj308w0ai74q.jpg)

当然,如果你愿意的话,你还可以扫描下面的二维码,让我能够一边翻书一边喝咖啡的。O(∩_∩)O~
同时也欢迎大家关注我的微信公众号:编程派(ID:codingpy),现在基本是每天定期更新,分享 Python 精彩教程和资源。

![赞助编程派的翻译计划](http://ww1.sinaimg.cn/mw690/006faQNTgw1f1g1gf903aj308w0ai74q.jpg)
***

## 声明
该中译版以知识共享协议([Creative Commons Attribution-NonCommercial 3.0 Unported License](https://creativecommons.org/licenses/by-nc/3.0/us/))发布,你可以自由分享、修改、复制该中译版,但请不要用于商业用途。

本书的原作是一本自由书籍(Free Book),以知识共享协议([Creative Commons Attribution-NonCommercial 3.0 Unported License](https://creativecommons.org/licenses/by-nc/3.0/us/))发布。因此,该中译版将以同样的协议发布,不会用于商业用途。你可以自由分享、修改、复制该中译版,但请不要用于商业用途
本书原著版权归[Allen Downey](http://greenteapress.com/wp/think-python-2e/)所有,原作链接如下:[https://github.com/AllenDowney/ThinkPython2](https://github.com/AllenDowney/ThinkPython2)

此书原著版权归[Allen Downey](http://greenteapress.com/wp/think-python-2e/)所有,原作链接如下:[https://github.com/AllenDowney/ThinkPython2](https://github.com/AllenDowney/ThinkPython2)
该中译版在翻译过程中,参考了车万翔老师组织翻译的 Python 2 版:[https://github.com/carfly/thinkpython-cn](https://github.com/carfly/thinkpython-cn),在此表示感谢

该中译版在翻译过程中,将参考车万翔老师组织翻译的Python 2版:[https://github.com/carfly/thinkpython-cn](https://github.com/carfly/thinkpython-cn)
本书中如仍存在细微错误,会不定期更新,也希望大家指正
96 changes: 96 additions & 0 deletions book/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
LATEX = latex

DVIPS = dvips

PDFFLAGS = -dCompatibilityLevel=1.4 -dPDFSETTINGS=/prepress \
-dCompressPages=true -dUseFlateCompression=true \
-dEmbedAllFonts=true -dSubsetFonts=true -dMaxSubsetPct=100


%.dvi: %.tex
$(LATEX) $<

%.ps: %.dvi
$(DVIPS) -o $@ $<

%.pdf: %.ps
ps2pdf $(PDFFLAGS) $<

all: book.tex
makeindex book.idx
pdflatex book
mv book.pdf thinkpython2.pdf
evince thinkpython2.pdf

hevea: book.tex header.html footer.html
# replace the pdfs with eps
sed s/.pdf/.eps/g book.tex > thinkpython2.tex
latex thinkpython2
rm -rf html
mkdir html
hevea -fix -O -e latexonly htmlonly thinkpython2
# the following greps are a kludge to prevent imagen from seeing
# the definitions in latexonly, and to avoid headers on the images
grep -v latexonly thinkpython2.image.tex > a; mv a thinkpython2.image.tex
grep -v fancyhdr thinkpython2.image.tex > a; mv a thinkpython2.image.tex
imagen -png thinkpython2
hacha thinkpython2.html
cp up.png next.png back.png html
mv index.html thinkpython2.css thinkpython2*.html thinkpython2*.png *motif.gif html

DEST = /home/downey/public_html/greent/thinkpython2

epub:
cd html; ebook-convert index.html thinkpython2.epub

distrib:
rm -rf dist
mkdir dist dist/tex dist/tex/figs
rsync -a thinkpython2.pdf html dist
rsync -a Makefile book.tex latexonly htmlonly dist/tex
rsync -a figs/*.fig figs/*.pdf dist/tex/figs
cd dist; zip -r thinkpython2.tex.zip tex
cd dist; zip -r thinkpython2.html.zip html
rsync -a dist/* $(DEST)
chmod -R o+r $(DEST)/*
cd $(DEST)/..; sh back

# UPDATE THE PATHS BELOW BEFORE RUNNING PLASTEX

plastex:
# Before running plastex, we need the current directory in PYTHONPATH
# export PYTHONPATH=$PYTHONPATH:.
python Filist.py book.tex > book.plastex
rm -rf /home/downey/thinkpython2/trunk/book
plastex --renderer=DocBook --theme=book --image-resolution=300 --filename=book.xml book.plastex
rm -rf /home/downey/thinkpython2/trunk/book/.svn

plastest:
# Before running plastex, we need the current directory in PYTHONPATH
# export PYTHONPATH=$PYTHONPATH:.
python Filist.py test.tex > test.plastex
rm -rf /home/downey/thinkpython2/trunk/test
plastex --renderer=DocBook --theme=test --filename=test.xml test.plastex
rm -rf /home/downey/thinkpython2/trunk/test/.svn

xxe:
xmlcopyeditor ~/ThinkDSP/book/book/book.xml &

lint:
xmllint -noout book/book.xml

OREILLY = atlas

oreilly:
rsync -a book.tex $(OREILLY)
rsync -a book/ $(OREILLY)
rsync -a figs/* $(OREILLY)/figs
cd $(OREILLY); git add .
cd $(OREILLY); git commit -m "Automated check in."
cd $(OREILLY); git push

clean:
rm -f *~ *.aux *.log *.dvi *.idx *.ilg *.ind *.toc



Binary file added book/back.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading