max()点击查看详细

min()点击查看详细

map()点击查看详细

filter()点击查看详细


 

 

1)max(iterable, key)

 key:相当于对可迭代对象iterable每个元素的预处理。

#返回key参数中的匿名函数返回的值中最大一个所对应的iterable参数中的值。

max('ah', 'bf', key=lambda x: x[1])

 

2)min(iterable, key)

点击查看详细

3)map(iterable, key)

点击查看详细

4)filter(iterable, key)

点击查看详细

 

相关文章:

  • 2021-05-21
  • 2022-03-09
  • 2021-12-31
  • 2022-12-23
  • 2021-07-30
  • 2021-12-02
  • 2021-11-19
猜你喜欢
  • 2022-03-06
  • 2021-08-19
  • 2022-02-08
  • 2022-12-23
  • 2021-09-20
相关资源
相似解决方案