📌  相关文章
📜  如何在 python 中连接两个列表 - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:26.589000             🧑  作者: 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']