快速建设网站工具,企业宣传片制作价格,外贸建站推广,分类信息的网站如何推广我通过生成一组随机数并将它们转换为int类型来创建数组。但是#xff0c;我不认为我下面的方法是有效的。有没有最好的方法来改变数组中的数据类型#xff1f;# standard normal distributed random numberscrandom.randn(5,5)carray([[-0.37644781, -0.81347483, -0.3689595…我通过生成一组随机数并将它们转换为int类型来创建数组。但是我不认为我下面的方法是有效的。有没有最好的方法来改变数组中的数据类型# standard normal distributed random numberscrandom.randn(5,5)carray([[-0.37644781, -0.81347483, -0.36895952, -2.68702544, -0.96780752],[ 0.05293328, 1.65260753, 0.55586611, -0.5786392 , 0.50865003],[ 1.25508358, 0.51783276, 2.36435212, -0.23484705, -1.20999296],[ 2.07552172, 0.65506648, 0.10231436, -0.26046045, 0.40148111],[ 0.24864496, -1.8852587 , -2.51091886, 1.01106003, 1.53118353]])darray([[-0.37644781, -0.81347483, -0.36895952, -2.68702544, -0.96780752],[ 0.05293328, 1.65260753, 0.55586611, -0.5786392 , 0.50865003],[ 1.25508358, 0.51783276, 2.36435212, -0.23484705, -1.20999296],[ 2.07552172, 0.65506648, 0.10231436, -0.26046045, 0.40148111],[ 0.24864496, -1.8852587 , -2.51091886, 1.01106003, 1.53118353]],dtypeint)darray([[ 0, 0, 0, -2, 0],[ 0, 1, 0, 0, 0],[ 1, 0, 2, 0, -1],[ 2, 0, 0, 0, 0],[ 0, -1, -2, 1, 1]])