Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 313 Bytes

68.md

File metadata and controls

17 lines (13 loc) · 313 Bytes
@author jackzhenguo
@desc 
@date 2019/4/10

68 所有多个列表的最大值

def max_lists(*lst):
    return max(max(*lst, key=lambda v: max(v)))


r = max_lists([1, 2, 3], [6, 7, 8], [4, 5])
print(r)  # 8
[上一个例子](67.md) [下一个例子](69.md)