summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/easybook/doc/chapter3.tex
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/easybook/doc/chapter3.tex')
-rw-r--r--macros/latex/contrib/easybook/doc/chapter3.tex17
1 files changed, 5 insertions, 12 deletions
diff --git a/macros/latex/contrib/easybook/doc/chapter3.tex b/macros/latex/contrib/easybook/doc/chapter3.tex
index 252551e7dc..d7630a59f4 100644
--- a/macros/latex/contrib/easybook/doc/chapter3.tex
+++ b/macros/latex/contrib/easybook/doc/chapter3.tex
@@ -9,13 +9,10 @@
\begin{lstlisting}[language = Python,caption = python 程序练习题]
#!/usr/bin/python
# -*- coding: UTF-8 -*-
-
-if __name__ == '__main__':
- ptr = []
- for i in range(5):
- num = int(raw_input('please input a number:\n'))
- ptr.append(num)
- print ptr
+
+i = ['a','b']
+l = [1,2]
+print dict([i,l])
\end{lstlisting}
\section{物理量}
@@ -47,8 +44,4 @@ if __name__ == '__main__':
\subsection{参考文献}
\index{y@引用!c@参考文献}
-这是一个参考文献引用的范例\cite{1979Prospect}。引用多个文献,将引用标号中的多个文献序号按升序排列,若其中有2个以上的连续序号,则改用范围序号,例如\cite{1979Prospect,1989The,2010An}。
-
-\section{行内盒子}
-\index{h@行内盒子}
-阿司匹林及其复方制剂都能有效治疗某几种头痛,但对另外几 \concise[Aqua]{concise}[fontupper = \rmfamily] 种则效果不明。因其他疾病或创伤导致的 \fuzzy[DarkSeaGreen]{fuzzy}[fontupper = \ttfamily,colupper = black] 继发性头痛需要及时在医疗机构接受治疗。 \ No newline at end of file
+这是一个参考文献引用的范例\cite{1979Prospect}。引用多个文献,将引用标号中的多个文献序号按升序排列,若其中有2个以上的连续序号,则改用范围序号,例如\cite{1979Prospect,1989The,2010An}。 \ No newline at end of file