yangsuiyun / master-python

Python修炼大法
0 stars 0 forks source link

how to do when function in map has multiple parameters #7

Open yangsuiyun opened 5 years ago

yangsuiyun commented 5 years ago
>>> from operator import add
>>> from itertools import repeat
>>> list(map(add, [1,2,3], repeat(4)))

[5, 6, 7]