Skip to content

Commit d59c727

Browse files
authored
add functools module,modify reduce function.
1 parent d8b8329 commit d59c727

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Python函数详解.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -864,9 +864,9 @@ Out[4]:
864864

865865
### reduce(func,seq[,init])
866866

867-
#### python 3中,我没有找到该函数,是不是没有了呀?
867+
#### from functools import reduce
868868
```python
869-
869+
from functools import reduce
870870
In [5]: def f5(x,y):
871871
...: return x + y
872872
...:

0 commit comments

Comments
 (0)