Where do the properties contained in python come from?

for example, numpy, I looked at the package structure of numpy on github and found that numpy is a package, but its _ _ init__.py file does not have a function definition such as ones (), and there is no import reference to it, so why can I write numpy.ones () to call this function after I import numpy.

Mar.24,2021

with help, you can see the location in numpy.core.numeric

help(numpy.ones)
Help on function ones in module numpy.core.numeric:

ones(shape, dtype=None, order='C')
    Return a new array of given shape and type, filled with ones.
    
    Parameters
    ----------
    shape : int or sequence of ints
        Shape of the new array, e.g., ``(2, 3)`` or ``2``.
    dtype : data-type, optional
        The desired data-type for the array, e.g., `numpy.int8`.  Default is
        `numpy.float64`.
    order : {'C', 'F'}, optional
        Whether to store multidimensional data in C- or Fortran-contiguous
        (row- or column-wise) order in memory.
    
    Returns
    -------
    out : ndarray
        Array of ones with the given shape, dtype, and order.
    
    See Also
    --------

clipboard.png


numpy/__init__.py there is a sentence:

from .core import *

then there is a sentence in core/__init__.py :

from .numeric import *
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b399c9-2c1b6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b399c9-2c1b6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?