numpy.dtype.alignment# attribute dtype.alignment# 根据编译器,此数据类型所需的对齐方式(字节). 更多信息请参见手册的C-API章节. 示例 Try it in your browser! >>> import numpy as np >>> x = np.dtype('i4') >>> x.alignment 4 >>> x = np.dtype(float) >>> x.alignment 8 Go BackOpen In Tab