对角线填充10位数学号,上方空余处用1填充,其余空处0填充
import numpy as np array_1 = np.ones([10,10]) #创建一个10行10列填充值为1的二维数组 array_0 = no.zeros([3,5]) #创建一个3行5列填充值为0的二维数组