리스트 원소 랜덤추출12345678910import random#중복 허용count = 2sampleList = ['a', 'b', 'c', 'd', 'e']print [random.choice(sampleList) for i in range(count)]#중복 허용 Xprint random.sample(sampleList, count) ← Previous Post Next Post → FEATURED TAGS Python FRIENDS tomato2532