python numbers = [1, 2, 3, 4, 5] squared_numbers = list(map(lambda x: x**2, numbers)) python from cytoolz import max numbers = [1, 10, 5, 8, 3] max_number = max(numbers) python from cytoolz import compose numbers = [1, 2, 3, 4, 5] sum_of_squares = compose(sum, map(lambda x: x**2))(numbers)


上一篇:
下一篇:
切换中文