numpy中的tile()函数

描述

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

语法

tile()方法语法:

tile(dataStructure, (shape);

参数

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

返回值

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

实例

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

原文地址:https://www.cnblogs.com/HITSZ/p/7098907.html