摘要: 原创链接:暂未找到转载链接:Python 方法中变量加self和不加的区别 这段代码我觉得很好的说明了python中类的方法在加self和不加self的区别。 1 >>> class AAA(object): 2 ... def go(self): 3 ... self.one = 'hello' 阅读全文
posted @ 2020-08-30 15:02 xdd1997 阅读(1762) 评论(0) 推荐(0) 编辑