python-如何寻找二维列表的最大值

data = [[1, 2], [3, 4]] max_item = max(max(row) for row in data) print(max_item) # 4
相关文章
相关标签/搜索