>>> a = array([[1,2,3],[0,0,0],[-1,-2,-3],[2,2,2]]) Traceback (most recent call last): File "<stdin>", line 1, in <module> NameError: name 'array' is not defined 先调包 import nimpy as np from np import * a = array([[1,2,3],[0,0,0],[-1,-2,-3],[2,2,2]])