作用:将一个列表中的元素打乱
import random a =[10,20,30,40,50,60] random.shuffle(a) print(a)
本文标题:Python random库的使用
本文链接:https://www.haomeiwen.com/subject/ioksgctx.html
网友评论