import numpy as np foo = np.ma.masked_equal(np.arange(10, dtype="float32"), 5) foo.fill_value = -1.0 bar = foo.astype("uint8") ...
確定! 回上一頁