只能針對可變的序列,對於不可變序列,請使用下面的sample()方法。 random.sample(population,k) 從population樣本或集合中隨機抽取K個不重複的元素 ...
確定! 回上一頁