📜  python 列表乘法 - Python 代码示例

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

代码示例2
a = [1, 2, 3, 4]
b = [5, 6, 7, 8]
 
result = [num1*num2 for num1, num2 in zip(a,b)]
 
print('Multiplication result is: ', result)