目录
if __name__ == '__main__':
import numpy as np
array1 = np.array([2, 5, 9, 12])
array2 = np.array([3, 7, 6, 10])
result = np.maximum(array1, array2)
print(result)
if __name__ == '__main__':
import numpy as np
array1 = np.array([2, 5, 9, 12])
array2 = np.array([3, 7, 6, 10])
result = np.minimum(array1, array2)
print(result)