개발/Python
map()
Louisus
2020. 5. 13. 23:24
728x90
# map(함수, 리스트)
- 리스트로 부터 원소를 하나씩 꺼내서 함수를 적용
list(map(lambda x: x**2, range(5)))
>> [0,1,4,9,16]