generator 함수를 좀 더 쉽게 사용할 수 있도록 generator expression 을 제공list comprehension 과 비슷하지만, [ ] 대신 ( ) 를 사용( i for i in xrange(10) if i % 2 ) python generator(제너레이터) 란 무엇인가먼저 python docs 의 generator 에 대한 정의를 보자. generator A function which returns an iterator. It looks like a normal function except that it contains yield statements for producing a series of values usable in a for-loop or that can be retrieved one at a time with the next() function.https://bluese05.tistory.com/56