<filename>python_interview_program/package_module/mash_sortedList.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Date    : 2019-06-04 22:07:19
# @Author  : <NAME>
# @Version : $Id$

"""
打乱一个排序好的list
"""

import random
alist = [1, 2, 3, 4, 5]
random.shuffle(alist)
print(alist)

<filename>python_interview_program/package_module/mash_sortedList.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Date    : 2019-06-04 22:07:19
# @Author  : <NAME>
# @Version : $Id$

"""
打乱一个排序好的list
"""

import random
alist = [1, 2, 3, 4, 5]
random.shuffle(alist)
print(alist)

#!/usr/bin/env python3 # -*- coding: utf-8 -*- # @Date    : 2019-06-04 22:07:19 # @Author  : <NAME> # @Version : $Id$ 打乱一个排序好的list