# 寻找分钟在列表/ 2D数组中并在Python中进行计算

``````import numpy as np

list = [[1.2886089553007253e-15, 3.283665029781338e-16, 0.0, 3.4027301260438933e-16],\
[3.047580716284324e-15, 1.3787915767152193e-15, 3.505982818951592e-16, 0.0]]

array = np.asarray(list)

result = array-array.min(axis=0)-1

print(result)
``````

``````[[-1. -1. -1. -1.]
[-1. -1. -1. -1.]]
``````

``````[[1.2886089553007253e-15 -0.0-1, 3.283665029781338e-16 -0.0-1, 0.0 -0.0-1, 3.4027301260438933e-16 -0.0-1],
[3.047580716284324e-15 -0.0-1, 1.3787915767152193e-15 -0.0-1, 3.505982818951592e-16 -0.0-1, 0.0 -0.0-1]]
``````

``````[[-0.9999999999999987, -0.9999999999999997, -1, -0.9999999999999997],
[-0.999999999999997, -0.9999999999999987, -0.9999999999999997, -1]]
``````

``````import numpy as np
``````
``````# set the printout precision
np.set_printoptions(precision=20)
``````
``````list = [[1.2886089553007253e-15, 3.283665029781338e-16, 0.0, 3.4027301260438933e-16],\
[3.047580716284324e-15, 1.3787915767152193e-15, 3.505982818951592e-16, 0.0]]

array = np.asarray(list)

result = array-array.min(axis=0)-1

print(result)
``````

``````[[-1.                 -1.                 -1.                  -0.9999999999999997]
[-0.9999999999999982 -0.999999999999999  -0.9999999999999997  -1.                ]]
``````