To silence this warning, use `float` by itself. Doing this will not modify any behavior and is safe.
importnumpyasnpe=np.ones((3,3),np.float)#3x3的浮点型2维数组,并且初始化所有元素值为1D:\projects\Numpy\array.py:25:DeprecationWarning:np.floatisadeprecatedaliasforthebuiltinfloat.Tosilencethiswarning,usefloatbyitself.Doi