python随机取list中的元素方法 随机取list中的元素random.sampleimportrandoma=[1,2,3,4,5,6,7,8,9]b=random.sample(a,5)以上这篇python随机取li 取元素