diff options
author | Hui Lan <lanhui@zjnu.edu.cn> | 2019-04-14 08:46:01 +0800 |
---|---|---|
committer | Hui Lan <lanhui@zjnu.edu.cn> | 2019-04-14 08:46:01 +0800 |
commit | 7f47b672c873a5ef5ee0c86dfb80c26e796ccf31 (patch) | |
tree | a0e5348f372a5255d19f4262ddff1717c69c7be7 /LectureNotesOnPython.rst | |
parent | e92875d96595389b4fe293adf77425efb24b9771 (diff) |
When is a good time to consider defining a new function?
Diffstat (limited to 'LectureNotesOnPython.rst')
-rw-r--r-- | LectureNotesOnPython.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/LectureNotesOnPython.rst b/LectureNotesOnPython.rst index a4cd91f..e923444 100644 --- a/LectureNotesOnPython.rst +++ b/LectureNotesOnPython.rst @@ -936,6 +936,8 @@ key与value互换 函数 ------ +当我们开始不断复制黏贴代码时,就要考虑把这部分代码做成函数了。 + 函数 ``unique_words`` 与 ``unique_words2`` 哪个运行速度快? .. code:: python |