码迷,mamicode.com
首页 > 编程语言 > 详细

python基本 -- 内建函数

时间:2014-11-20 22:08:06      阅读:312      评论:0      收藏:0      [点我收藏+]

标签:io   ar   sp   for   on   cti   bs   ef   as   

1.lambda()

匿名函数

2. map()

def map(function, sequence, *sequence_1): # real signature unknown; restored from __doc__
    """
    map(function, sequence[, sequence, ...]) -> list
    
    Return a list of the results of applying the function to the items of
    the argument sequence(s).  If more than one sequence is given, the
    function is called with an argument list consisting of the corresponding
    item of each sequence, substituting None for missing values when not all
    sequences have the same length.  If the function is None, return a list of
    the items of the sequence (or a list of tuples if more than one sequence).
    """
    return []

# 两个参数,一个处理函数,一个可迭代的序列
# 返回一个列表


python基本 -- 内建函数

标签:io   ar   sp   for   on   cti   bs   ef   as   

原文地址:http://my.oschina.net/lpe234/blog/346939

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!