numpy数组指定数值的初始化 代码实现: import cv2 import os import numpy as np #指定数值初始化 array = np.zeros([2,2],np.uint64) array.fill(8) print(array)