随笔 - 356  文章 - 0  评论 - 12  阅读 - 102万
05 2020 档案
python __getattr__和__getattribute__ 区别
摘要:当我们访问一个对象的不存在的属性的时候,默认都会报错 例如: class Count(object): def __init__(self, mymin, mymax): self.mymin = mymin self.mymax = mymax obj1 = Count(1, 10) print( 阅读全文
posted @ 2020-05-15 00:50 blogsheng 阅读(570) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示