def get_larger_numbers(a, b):
return [max(x, y) for x, y in zip(a, b)]
def get_larger_numbers(a, b):
return map(max, a, b)
def get_larger_numbers(a, b):
return map(max, a, b)
return new_array
def get_larger_numbers(a, b):
return [max(pair) for pair in zip(a, b)]
def get_larger_numbers(a, b):
return [max(x) for x in zip(a, b)]
def get_larger_numbers(a, b):
return map(max, zip(a, b))
def get_larger_numbers(a, b):
return [max(x) for x in list(zip(a,b))]
def get_larger_numbers(a, b):
return [x+y-min([x,y]) for x, y in zip(a, b)]
def get_larger_numbers(a, b):
return list(map( (lambda q: max(q[0], q[1])), zip(a, b)))
def get_larger_numbers(a, b):
return (list(map(max, zip(a, b))))
def get_larger_numbers(a, b):
"""Smart ass"""
return map(lambda x: max(x[0], x[1]), zip(a, b))
景越Python基础训练营QQ群