Skip to content

Commit 3a3cfad

Browse files
author
wolf
committed
first chapter
1 parent 0035991 commit 3a3cfad

File tree

6 files changed

+57
-10
lines changed

6 files changed

+57
-10
lines changed

thinkpython/tex-zh/book.aux

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@
1919
\newlabel{hello}{{1.6}{5}}
2020
\@writefile{toc}{\contentsline {section}{\numberline {1.7}调试}{6}}
2121
\@writefile{toc}{\contentsline {section}{\numberline {1.8}术语表}{6}}
22+
\@writefile{toc}{\contentsline {section}{\numberline {1.9}练习}{7}}

thinkpython/tex-zh/book.idx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,8 @@
8888
\indexentry{parse 句法分析}{7}
8989
\indexentry{print statement print 语句}{7}
9090
\indexentry{statement!print 语句!打印}{7}
91+
\indexentry{documentation 文档}{7}
92+
\indexentry{python.org}{7}
93+
\indexentry{help utility 帮助工具}{8}
94+
\indexentry{caculator 计算器}{8}
95+
\indexentry{running pace 跑步速度}{8}

thinkpython/tex-zh/book.log

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
This is XeTeX, Version 3.1415926-2.2-0.9995.2 (TeX Live 2009/Debian) (format=xelatex 2010.10.11) 23 OCT 2010 06:42
1+
This is XeTeX, Version 3.1415926-2.2-0.9995.2 (TeX Live 2009/Debian) (format=xelatex 2010.10.11) 23 OCT 2010 13:59
22
entering extended mode
33
restricted \write18 enabled.
44
%&-line parsing enabled.
@@ -948,29 +948,41 @@ Package Fancyhdr Warning: \headheight is too small (12.0pt):
948948
This may cause the page layout to be inconsistent, however.
949949

950950
[6]
951+
Underfull \hbox (badness 10000) in paragraph at lines 983--984
952+
953+
[]
954+
955+
956+
Underfull \hbox (badness 10000) in paragraph at lines 992--993
957+
958+
[]
959+
960+
961+
Underfull \hbox (badness 10000) in paragraph at lines 1001--1002
962+
963+
[]
964+
965+
[7]
951966

952967
Package Fancyhdr Warning: \headheight is too small (12.0pt):
953-
Make it at least 12.0766pt.
968+
Make it at least 12.12543pt.
954969
We now make it that large for the rest of the document.
955970
This may cause the page layout to be inconsistent, however.
956971

957-
[7] (./book.aux)
972+
[8] (./book.aux)
958973
LaTeX Font Info: Some font shapes were not available, defaults substituted.
959974

960975

961976
LaTeX Warning: There were undefined references.
962977

963-
964-
LaTeX Warning: Label(s) may have changed. Rerun to get cross-references right.
965-
966978
)
967979
Here is how much of TeX's memory you used:
968-
5899 strings out of 494665
969-
98294 string characters out of 1166476
980+
5900 strings out of 494665
981+
98313 string characters out of 1166476
970982
183155 words of memory out of 3000000
971-
8956 multiletter control sequences out of 15000+50000
983+
8957 multiletter control sequences out of 15000+50000
972984
24367 words of font info for 115 fonts, out of 3000000 for 9000
973985
669 hyphenation exceptions out of 8191
974986
34i,10n,43p,458b,283s stack positions out of 5000i,500n,10000p,200000b,50000s
975987

976-
Output written on book.pdf (19 pages).
988+
Output written on book.pdf (20 pages).

thinkpython/tex-zh/book.pdf

6.85 KB
Binary file not shown.

thinkpython/tex-zh/book.tex

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -977,6 +977,34 @@ \section{术语表}
977977

978978
\end{description}
979979

980+
\section{练习}
981+
982+
\begin{ex}
983+
打开浏览器浏览Python官网\url{python.org}.这个页面包含了Python的一些信息,还有和Python相关的连接。你可以查看Python官方文档。\\
984+
985+
比如,在搜索框里输入{\tt print},第一个链接就是{\tt print}语句的文档。此时,并不是所有的信息对你都有意义,但是知道它们在哪里总是有好处的。
986+
987+
\index{documentation 文档}
988+
\index{python.org}
989+
\end{ex}
990+
991+
\begin{ex}
992+
启动Python的解释器,输入{\tt help()}启动在线帮助工具。或者你也可以输入\verb"help('print')" 获得关于{\tt print}语句的信息。\\
993+
994+
如果没有成功,你或许需要安装额外的Python官方文档,或者设置环境变量。这个依赖于你使用的操作系统和Python解释器版本。
995+
996+
\index{help utility 帮助工具}
997+
\end{ex}
998+
999+
1000+
\begin{ex}
1001+
打开Python解释器,我们暂且把它作为计算器。关于数学操作的语法,Python和标准的数学符号很相似。比如,符号{\tt +},{\tt -} 和{\tt /}表示加减,除。乘法的符号是{\tt *}。\\
1002+
1003+
如果43分钟30秒,跑了10公里,每英里花费的时间是多少?你的平均速度是多少英里每小时?(Hint:一英里等于1.61公里)。
1004+
1005+
\index{caculator 计算器}
1006+
\index{running pace 跑步速度}
1007+
\end{ex}
9801008

9811009

9821010

thinkpython/tex-zh/book.toc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@
1212
\contentsline {section}{\numberline {1.6}第一个程序}{5}
1313
\contentsline {section}{\numberline {1.7}调试}{6}
1414
\contentsline {section}{\numberline {1.8}术语表}{6}
15+
\contentsline {section}{\numberline {1.9}练习}{7}

0 commit comments

Comments
 (0)