왜 Python3에는 xrange 함수가 없습니까? 에 Python3를 Python3가 요.xrange 간단한 예: Python2: from time import time as t def count(): st = t() [x for x in xrange(10000000) if x%4 == 0] et = t() print et-st count() Python3: from time import time as t def xrange(x): return iter(range(x)) def count(): st = t() [x for x in xrange(10000000) if x%4 == 0] et = t() print (et-st) count() 결과는 각각 다음과 같습니다. 1.53888392448 3.215..