numpy中的tile()函数
描述
Numpy 的 tile() 用于叠加(复制)指定的数据结构。
语法
tile()方法语法:
tile(dataStructure, (shape);
参数
-
dataStructure
-- 被叠加的数据结构 - shape --以什么shape叠加
返回值
返回叠加得到的数据结构,一般是ndarray。
实例
以下实例展示了tile()函数的使用方法:
![numpy中的tile()函数 numpy中的tile()函数](/default/index/img?u=aHR0cHM6Ly9pbWFnZXMyMDE1LmNuYmxvZ3MuY29tL2Jsb2cvNTg0MDgzLzIwMTcwNi81ODQwODMtMjAxNzA2MzAxNTA3MDE1MjQtMTE5MDc1ODI2MC5wbmc=)
Numpy 的 tile() 用于叠加(复制)指定的数据结构。
tile()方法语法:
tile(dataStructure, (shape);
dataStructure
-- 被叠加的数据结构返回叠加得到的数据结构,一般是ndarray。
以下实例展示了tile()函数的使用方法:
![numpy中的tile()函数 numpy中的tile()函数](/default/index/img?u=aHR0cHM6Ly9pbWFnZXMyMDE1LmNuYmxvZ3MuY29tL2Jsb2cvNTg0MDgzLzIwMTcwNi81ODQwODMtMjAxNzA2MzAxNTA3MDE1MjQtMTE5MDc1ODI2MC5wbmc=)