摘要: map()函数def format_name(s): return s.capitalize()print map(format_name, ['adam', 'LISA', 'barT'])Result: ['Adam', 'Lisa', 'Bart'] 把函数作为参数1 impor... 阅读全文
posted @ 2015-10-08 22:45 爱在夕阳下 阅读(237) 评论(2) 推荐(0) 编辑