notes
latest
  • HTML,CSS,JavaScript
  • book
  • ci
  • db
  • docker
  • go
  • java
  • network
  • os
  • python
    • basis
    • advance
    • object oriented
    • network
    • modules
    • scripts
    • tips
      • 高阶函数
        • filter
        • map/reduce
        • sorted
      • python实用脚本
      • tips
      • 使用Python优雅的实现switch
      • 函数式编程
      • 同时兼容python2和python3
      • 字典,列表排序
      • 遍历list和dict
      • 错误,调试和测试
    • StyleGuide
    • Python练习
    • web框架
    • 爬虫
    • 机器学习
    • Deployment
    • 问题记录
    • Python相关项目
    • tmp
    • 安装Python
  • service
  • shell
  • tips
  • tmp
  • tools
notes
  • Docs »
  • python »
  • tips »
  • 高阶函数
  • Edit on GitHub

高阶函数¶

  • filter
    • 用filter求素数
  • map/reduce
    • reduce
    • 将传入的字符编程规范的首字母大写,其他字母小写
    • 请编写一个prod()函数,可以接受一个list并利用reduce()求积
    • 利用map和reduce编写一个str2float函数
  • sorted
Next Previous

© Copyright 2016, yangjinjie Revision bebd1849.

Built with Sphinx using a theme provided by Read the Docs.