day20.模块和包

阅读目录

一 模块

3.1 import

3.2 from ... import...

3.3 把模块当做脚本执行 

3.4 模块搜索路径

3.5 编译python文件

二 包

2.2 import 

2.3 from ... import ...

2.4 __init__.py文件

2.5  from glance.api import *

2.6 绝对导入和相对导入

2.7 单独导入包


 

原文地址:https://www.cnblogs.com/maxiaotiaoshishui/p/7325921.html