# 导包 import numpy as np numpy.array nparr = np.array([i for i in range(10)]) nparr # array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]) zeros .zeros(shape=(x,y), dtype=None, order='C'):返回来一个给定形状和类型的用 0 填充的数组: ones .ones(shape=(x,y), dtype=None, order='C'):返回来一个给…