import numpy as np #创建ndarray# data1 = [6, 5, 7, 1, 3]# arrl = np.array(data1)# print(arrl)#多维列表创建ndarraydata2 = [[3, 4, 2], [1, 8, 9]]arr2 = np.array(data2)## print(arr2)## asrr1 = np.asarray([2, 3, 4])# print(asrr1)## asrr2 = np.asarray([[2, 1, 3,…