from random import shuffle color = [‘1‘, ‘2‘, ‘3‘, ‘4‘, ‘5‘] shuffle(color) print(color)
python 列表字符串元素乱序
原文:https://www.cnblogs.com/sea-stream/p/9966153.html