NameError : 이름 'reduce'가 파이썬에서 정의되지 않았습니다 Python 3.2를 사용하고 있습니다. 이것을 시도 : xor = lambda x,y: (x+y)%2 l = reduce(xor, [1,2,3,4]) 그리고 다음과 같은 오류가 발생했습니다. l = reduce(xor, [1,2,3,4]) NameError: name 'reduce' is not defined reduce대화식 콘솔로 인쇄 를 시도했지만 이 오류가 발생했습니다. NameError: name 'reduce' is not defined 되어 reduce정말 파이썬 3.2에서 제거? 이 경우 대안은 무엇입니까? 로 이동했습니다 functools. 추가 할 수 있습니다 from functools import reduce..