函数定义扑克牌

def func():
lst= []
lst1 = ["红心", "草花", "黑桃", "方片"]
lst2 = ["A", 2, 3, 4, 5, 6, 7, 8, 9, 10, "J", "Q", "K"]
for i in lst1:
for j in lst2:
dic = {}
dic[i] = j
# lst.append(tuple(dic))
lst.append((i, j))
return lst
print(func())
posted @ 2019-11-06 15:29  冰灬荷  阅读(138)  评论(0编辑  收藏  举报