是否有更多pythonic方法将列表a的每个元素组合到列表b的每个元素?

时间:2017-03-26 19:47:44

标签: python list

是否有更多的pythonic方法将列表套装的每个元素组合到列表编号的每个元素中?

suits = ["Clubs", "Spades", "Hearts", "Diamonds"]
numbers = ["A", "K", "Q", "J", "10", "9", "8", "7", "6", "5", "4", 
 "3", "2"]
card_deck =[]

for s in suits:
    for n in numbers:
        card = s + " " + n
        card_deck.append(card)

PS for answer ++:使用listst执行此操作的正确开发人员英语术语是什么?合并,合并等?

0 个答案:

没有答案