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 lstprint(func())