examples/numpy/ones_and_zeros.py
from __future__  import print_function
import numpy

c = numpy.ones(4, dtype=int)
print(c)          # [1 1 1 1]
print(c.dtype)    # int64
print(c.shape)    # (4,)


d = numpy.zeros(3, dtype=float)
print(d)          # [ 0.  0.  0.]
print(d.dtype)    # float64
print(d.shape)    # (3,)