描述
Numpy 的 tile() 用于叠加(复制)指定的数据结构。
语法
tile()方法语法:
tile(dataStructure, (shape);
参数
-
dataStructure
-- 被叠加的数据结构 - shape --以什么shape叠加
返回值
返回叠加得到的数据结构,一般是ndarray。
实例
以下实例展示了tile()函数的使用方法:
![](https://images2015.cnblogs.com/blog/584083/201706/584083-20170630150701524-1190758260.png)
HITSZ 2017-06-30 15:07 原文
Numpy 的 tile() 用于叠加(复制)指定的数据结构。
tile()方法语法:
tile(dataStructure, (shape);
dataStructure
-- 被叠加的数据结构返回叠加得到的数据结构,一般是ndarray。
以下实例展示了tile()函数的使用方法:
![](https://images2015.cnblogs.com/blog/584083/201706/584083-20170630150701524-1190758260.png)