一、self总是指向调用时的类的实例。
eg:
class Test:
def Print(self, data):
print(data)
T= Test()
T.Print(abc)
>>>abc
其实t.Print()在执行过程中被翻译成Test.Print(T, abc)
二、对数据的一种绑定方式,方便在类中的各个地方调用。