📅  最后修改于: 2022-03-11 14:46:14.076000             🧑  作者: Mango
>>> import numpy as np
>>> array=np.array([[1,1,1],[1,1,1],[1,1,1]])
>>> array([[1, 1, 1],
[1, 1, 1],
[1, 1, 1]])
>>> np.all(array == 1)
>>> True