Skip to content

Latest commit

 

History

History
11 lines (7 loc) · 446 Bytes

functools.md

File metadata and controls

11 lines (7 loc) · 446 Bytes

functools

import functools
Method Description Usage
functools.partial Create another function based on the existed one,
assigning default arguments.
newrange = partial(range, 1)
newrange(100)