目录

* 一、__module__
<https://www.cnblogs.com/nickchen121/p/10991513.html#一__module__>
* 二、__class__ <https://www.cnblogs.com/nickchen121/p/10991513.html#二__class__>
# lib/aa.py class C: def __init__(self): self.name = 'SB' # index.py from
lib.aa import C obj = C()
一、__module__

* __module__ 表示当前操作的对象在那个模块 print(obj.__module__) # 输出 lib.aa,即:输出模块
二、__class__

* __class__表示当前操作的对象的类是什么 print(obj.__class__) # 输出 lib.aa.C,即:输出类

友情链接
ioDraw流程图
API参考文档
OK工具箱
云服务器优惠
阿里云优惠券
腾讯云优惠券
华为云优惠券
站点信息
问题反馈
邮箱:ixiaoyang8@qq.com
QQ群:637538335
关注微信