python中choice对比(在numpy和random中均出现过)外加sample()函数对比

先看numpy中choice()

 再看random中choice()和choices()

 

 最后看下random.sample()

 

posted @ 2020-04-30 12:22  lililili——  阅读(570)  评论(0)    收藏  举报