numpy中的tile()函数

描述

Numpy 的 tile() 用于叠加(复制)指定的数据结构。

语法

tile()方法语法:

tile(dataStructure, (shape);

参数

  • dataStructure
     -- 被叠加的数据结构
  • shape  --以什么shape叠加

返回值

返回叠加得到的数据结构,一般是ndarray。

实例

以下实例展示了tile()函数的使用方法:

posted @ 2017-06-30 15:07  Apollo_zhanghongbo  阅读(230)  评论(0编辑  收藏  举报