TechNote.kr

  • 홈
  • 태그

functools 1

Python - reduce(), 인자를 누적적으로 적용하여 결과를 반환

reduce >>> functools.reduce(function, iterable[, initializer]) iterable 한 data를 왼쪽에서 오른쪽으로 누적적으로 fuction 의 인자로 넣어 하나의 결과를 반환하는 함수 python2 에서는 builtin 함수로 바로 사용할 수 있었지만 python3 에서는 functools 모듈의 함수로 포함되어 있다. [Link : iterable 과 iterator, 그리고 반복문] functools.reduce(function, iterable[, initializer]) Apply function of two arguments cumulatively to the items of iterable, from left to right, so as to r..

Language/Python 2020.02.23
1
더보기
  • TechNote.
    • Android
    • Language
      • R
      • C
      • Java
      • Python
      • Kotlin
      • HTML
      • Javascript
      • nvd3.js
      • Node.js
    • OS
      • Windows
      • Linux
      • Mac
      • OpenWRT, LEDE
    • Network
      • Wi-Fi
    • Products & Services
      • Django
      • AmazonWebService (AWS)
      • VirtualBox
      • Adsense
      • WordPress
      • Tistory
      • VS Code
      • Docker
    • Database
    • Application
      • KidsTube
      • Notepad++
    • Computer architecture
    • Software architecture
    • ETC

최근글과 인기글

  • 최근글
  • 인기글

Copyright © Kakao Corp. All rights reserved.

티스토리툴바