Let's take a look at what can be identified in the imported SciPy folder:
In [2]:
Import scipy
dir (scipy)
OUT[2]:
[' Allow_threads ',
' bufsize ',
...
' where ',
' who ',
' zeros ',
' zeros_like '
Let's look at what can be identified in the Scipy.misc folder:
In [3]:
Import Scipy.misc
dir (scipy.misc)
OUT[3]:
[' Tester ',
' __all__ ', '
__builtins__ ',
' __doc__ ',
' __file__ ',
' __name__ ',
' __ package__ ',
' __path__ ', '
_info ',
' absolute_import ',
' ascent ',
' Bytescale ',
' Central_diff_weights ',
' comb ', '
derivative ',
' division ',
' doccer ', ' face
',
' Factorial ',
' factorial2 ', '
factorialk ',
' fromimage ',
' imfilter ',
' imread ',
' Imresize ',
' imrotate ',
' imsave ',
' imshow ',
' info ',
' Lena ',
' logsumexp ',
' Pade ',
' print_function ', '
source ',
' test ',
' toimage ',
' who '
In contrast, it can be seen that only Dir (Scipy.misc) can find ' Imsave '.
So, only:
in []:
Import Scipy.misc
The computer can know what you mean by Scipy.misc.imsave .