📜  如何在python代码示例中连接两个列表

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

代码示例6
list1 = ["Hello ", "take "]
list2 = ["Dear", "Sir"]

resList = [x+y for x in list1 for y in list2]
print(resList)

#['Hello Dear', 'Hello Sir', 'take Dear', 'take Sir']