240
笔下虽有千言,胸中实无一策

python: random.sample

random.sample(populationk)

Return a k length list of unique elements chosen from the population sequence. Used for random sampling without replacement.

posted @ 2018-02-20 10:33  CasperWin  阅读(450)  评论(0编辑  收藏  举报