点击运行
import numpy as np x = np.zeros((2,2), dtype = [('x', 'i4'), ('y', 'i4')]) print (x)
运行结果 :
正在执行...