📅  最后修改于: 2022-03-11 14:45:34.195000             🧑  作者: Mango
import numpy
array = np.array([0. , 0.05, 0.25, 0.5 , 0.75])
# is array contain no 0?
np.all(array)
>>> False
# Remove the 0, first element of the array.
array[1:]
>>> array([0.05, 0.25, 0.5 , 0.75])
# is array contain no 0?
np.all(array[1:])
>>> True