具体的如下:
class AAA(object):
def Go(self):
self.one = 'hello'
和下面的
class AAA(object):
def Go(self):
one = 'hello'
两者的one,有什么区别?
class AAA(object):
def Go(self):
self.one = 'hello'
和下面的
class AAA(object):
def Go(self):
one = 'hello'
两者的one,有什么区别?