写函数,返回一个扑克牌列表,里面有52项,每一项是一个元组
例如:[(‘红心’,2),(‘草花’,2), …(‘黑桃’,‘A’)]
def func(): yanse = ["红心", "草花","方块","黑桃"] dianshu = ["2","3","4","5","6","A"] result = [] for dian in dianshu: for el in yanse: result.append((el, dian)) return result