python生成不重复随机数和对list乱序的解决方法 andom.sample(list,n)即是从list中随机选取n个不同的元素#-*-coding:utf-8-*-importrandom#从一个list中随 乱序