1.from…import 语句
Python 的 from 语句让你从模块中导入一个指定的部分到当前命名空间中,语法如下
from modname import name1[, name2[, ... nameN]]
2. from…import * 语句
3.__all__魔法方法
__init__魔法方法
python中的__init__()时类的初始化函数
__new__魔法方法
__new__是在一个对象实例化的时候所调用的第一个方法
__del__魔法方法
在定义的类中存在__del__方法时,当类被删除的时候,程序会自动执行__del__当中的代码
__doc__魔法方法