numpy.dtype.alignment# 属性 dtype.alignment# 根据编译器,此数据类型所需的对齐方式(字节)。 更多信息可在手册的 C-API 部分中找到。 示例 在浏览器中试用! >>> import numpy as np >>> x = np.dtype('i4') >>> x.alignment 4 >>> x = np.dtype(float) >>> x.alignment 8 返回在新标签页中打开