empty_like#

astropy.utils.masked.function_helpers.empty_like(prototype, dtype=None, order='K', subok=True, shape=None)[源代码]#

返回与给定数组具有相同形状和类型的新数组。

喜欢 numpy.empty_like ,但会添加一个空掩码。