📌  相关文章
📜  如何在python代码示例中将两个列表相乘

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

代码示例5
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)