list = [0,1,2,3,4] rs = random.sample(list, 2) print(rs) print(list) 》》》[2, 4] #此数组随着不同的执行,里面的元素随机,但都是两个 》》》[0 ...
確定! 回上一頁