The difference between import numpy and from numpy import*

import numpy, if you use numpy attributes, you need to add numpy in front

from numpy import *, you do not need to add numpy

The latter is not recommended. If the next time you refer to the same function as the numpy function, there will be a naming conflict.

Related Posts