numpy.full(shape, fill_value, dtype=None, order=‘C’, *, like=None)
Return a new array of given shape and type, filled with fill_value.
shape:生成数组的形状
fill_value:填充的值
返回一个形状为指定shape和类型的数组
参考链接:https://numpy.org/doc/stable/reference/generated/numpy.full.html
numpy.full
最新推荐文章于 2024-05-22 10:32:04 发布