python 列表字符串元素乱序

 

from random import shuffle  
color = ['1', '2', '3', '4', '5']  
shuffle(color)  
print(color)

 

posted @ 2018-11-15 21:23  anobscureretreat  阅读(974)  评论(0编辑  收藏  举报