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