学习笔记(11):Python 面试100讲(基于Python3.x)-你知道乱序列表元素有哪些方式吗...

立即学习:https://edu.csdn.net/course/play/26755/340121?utm_source=blogtoedu

1、手工打乱列表元素顺序

      调用随机数模块编写函数

2、调用api

      random。shuffle(a)

发布了26 篇原创文章 · 获赞 0 · 访问量 121

猜你喜欢

转载自blog.csdn.net/wuchuang19/article/details/104215527