shuffle

· Python
파이썬에서는 배열을 섞어주는 함수가 존재한다. random을 import 해준 후 shuffle함수를 이용하면 된다. import random list = ["one", "two", "three", "four", "five"] random.shuffle(list) print(list)
TeaHuiLee
'shuffle' 태그의 글 목록