from numpy import *
a = array([1,2,3])
print(a.shape)
# (3.)
print(a.ndim)
# 1
b = tile(a,2)
print(b)
# [1 2 3 1 2 3]
print(b.shape)
# (6,)
print(b.ndim)
# 1
c = tile(a,(2,3))
print(c)
# [[1 2 3 1 2 3 1 2 3]
# [1 2 3 1 2 3 1 2 3]]
print(c.shape)
# (2,9)
print(c.ndim)
# 2
import numpy as np
a = np.array([0, 1, 2])
b = np.tile(a, (2, 1, 2))
print(b)
#[[[0 1 2 0 1 2]]
# [[0 1 2 0 1 2]]]