import numpy as np import cv2 import matplotlib.pyplot as plt 一.数组的创建 1. 创建二维数组 np.array([ [1,2,3], [4,6,8], ]) array([[1, 2, 3], [4, 6, 8]]) *数组宽度需要一致 np.array([ [1,2,3], [4,6,8,7], ]) array([list([1, 2, 3]), list([4, 6, 8, 7])], dtype=object) 2. 和p…