logo
  • 教程列表
  • SO官方文檔
  • 降低
    • 概述
    • 使用 reduce
    • 累積產品
    • 任何非短路變體
    • 序列的第一個 truthyfalsy 元素(如果沒有,則為最後一個元素)
  1. StackOverflow 文件
  2. Python Language 教程
  3. 降低
  4. 累積產品

累積產品

Created: November-22, 2018

import operator
reduce(operator.mul, [10, 5, -3])
# Out: -150
  • 任何非短路變體
  • 使用 reduce

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 關於本站
  • 免責聲明