摘要: 1. __getattribute__ 官方文档说明: __getattribute__ 魔法方法是属性访问拦截器,就是当实例的属性被访问时,会自动调用类的 __getattribute__ 方法。 当实例调用属性时,比如 t.name,会把 name 作为实参传进 __getattribute__ 阅读全文
posted @ 2023-03-12 14:40 夏夜星空晚风 阅读(92) 评论(0) 推荐(0) 编辑