Python random库的使用 2019-12-06 本文已影响0人 TTTRX random.shuffle() 作用:将一个列表中的元素打乱 import random a =[10,20,30,40,50,60] random.shuffle(a) print(a)