diff options
author | Hui Lan <lanhui@zjnu.edu.cn> | 2019-07-30 19:01:17 +0800 |
---|---|---|
committer | Hui Lan <lanhui@zjnu.edu.cn> | 2019-07-30 19:01:17 +0800 |
commit | ddb9f73abd5e907f3c1b4ce718f260af9c4ab30e (patch) | |
tree | 44acab56cfbd278a706d0b82e4504eeff9b71791 /LectureNotesOnPython.rst | |
parent | 15b98756f60765dae408760a1620e47d9531295c (diff) |
LectureNotesOnPython.rst: 添加一节, 两种运行Python的模式
Diffstat (limited to 'LectureNotesOnPython.rst')
-rw-r--r-- | LectureNotesOnPython.rst | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/LectureNotesOnPython.rst b/LectureNotesOnPython.rst index 4f75b07..99c9afb 100644 --- a/LectureNotesOnPython.rst +++ b/LectureNotesOnPython.rst @@ -91,7 +91,7 @@ Bit, byte, KB, MB, GB, TB, PB换算。 Python能做什么? ----------------------------------------------------- -可以当一个计算器。 交互模式。 脚本模式。 +可以当一个计算器。 可以处理大量文本。 强大的标准库。 @@ -242,6 +242,16 @@ Python能做什么? 编程的要件是 **数据** ,以及 **对数据的操作** 。 不管是什么程序, 一般来说会有一个输入, 一个输出, 输入与输出之间是个黑盒子, 黑盒子里包括一系列的运算。 程序员的任务是打造这个黑盒子。 我们要确保输入是正确有效的, 输出是我们期望的结果, 运算是有效率的。 + +两种运行Python的模式 +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +交互模式 (Interactive Mode) 。 + +脚本模式 (Script) 。 + + + 例子1 .. code:: python |