From 7f47b672c873a5ef5ee0c86dfb80c26e796ccf31 Mon Sep 17 00:00:00 2001 From: Hui Lan Date: Sun, 14 Apr 2019 08:46:01 +0800 Subject: When is a good time to consider defining a new function? --- LectureNotesOnPython.rst | 2 ++ 1 file changed, 2 insertions(+) (limited to 'LectureNotesOnPython.rst') 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 -- cgit v1.2.1