diff options
-rw-r--r-- | LectureNotesOnPython.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/LectureNotesOnPython.rst b/LectureNotesOnPython.rst index 4df33e6..191c164 100644 --- a/LectureNotesOnPython.rst +++ b/LectureNotesOnPython.rst @@ -566,7 +566,7 @@ map方法,把几个值变成另外几个值 def f(x): return 2*x -list(map(f, [1,2]])) +list(map(f, [1,2])) filter方法,从几个值中选择符合条件的几个值。 |