TypeError: array() takes from 1 to 2 positional arguments but 3 were given
错误案例importnumpyasnpX=np.array([0,0],[0,0],[1,1])错误提示TypeErrorTraceback(mostrecentcalllast)~\AppData\Local\Temp/ipykernel_52444/1027577749.pyin1importnumpyasnp---->2X=np.array([0,0],[0,0],[1,1])TypeErr