Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 266 Bytes

File metadata and controls

18 lines (14 loc) · 266 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]