Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 337 Bytes

73.md

File metadata and controls

20 lines (15 loc) · 337 Bytes
@author jackzhenguo
@desc 
@date 2019/4/15

73 map实现向量运算

多序列运算函数

map(function,iterabel,iterable2)

lst1=[1,2,3,4,5,6]
lst2=[3,4,5,6,3,2]
list(map(lambda x,y:x*y+1,lst1,lst2))
### [4, 9, 16, 25, 16, 13]
[上一个例子](72.md) [下一个例子](74.md)