import a ---调用的时候需要带上a.XXX,且可以调用a下面的所有函数
from a import name--可以直接使用name,也只能调用import后面的函数;
from a import * :可以直接使用函数名,不用加点,且可以调用所有的函数。
导入模块的实质:将模块重头到尾执行一遍。
模块:一个python文件
标准模块:python自带的
第三方模块:需要自己安装:在线安装:1、pip install XXX
手动安装:.whl---pip install asbpath.whl
.tar.gz---解压---python setup.py install(一般是先解压,然后进入目录之后,有setup.py文件,通过命令 python setup.py install安装)