import some-model : three things will be done
1. 2. 3.
* 多次import时, 模块只有在第一次导入的时候会被执行
* if __name__ == '__main__': do something as a runnable file else: as a module
* sys.path (list) 存放搜索路径,‘’表示当前目录
* sys.modules 存放已经导入的
package:
* __init__.py 当前目录就成了一个package,当导入时首先执行__init__.py文件
----------------reference---------------------------
0. http://blog.csdn.net/zyz511919766/article/details/22678143