📜  python element wise multiplication list - Python代码示例

📅  最后修改于: 2022-03-11 14:46:47.206000             🧑  作者: Mango

代码示例2
# element-wise multiplication of x & y
>>>x = [1,2,3,4]
>>>y = [2,3,4,5]
>>>[a*b for a,b in zip(x,y)]
[2, 6, 12, 20]