import numpy as np
a = [4, 5, 6, 8]
np.array(a) < 10
#输出为 array([True, True, True, True])
(np.array(a) < 10).all()
#输出为 True
import numpy as np
a = [4, 5, 6, 8]
np.array(a) < 10
#输出为 array([True, True, True, True])
(np.array(a) < 10).all()
#输出为 True