import numpy #向量与矩阵运算库(线性代数运算库) 1.19.5 import cv2 img_array=[[[0,225,0,255]for i in range(255)]for j in range(255)] img_numpy=numpy.array(img_array) cv2.imwrite("1.jpg",img_numpy)