简介

1
2
3
4
5
6
7
8
9
10
# coding:utf-8

import random
from random import shuffle
values = list(range(1,11)) + 'J Q K'.split()
suit = '红桃 黑桃 方块 梅花'.split()
deck = ['{}/{}'.format(v,s) for v in values for s in suit]
print(deck)
shuffle(deck)
print(deck)