# *_*coding:utf-8_*_
class A():
if 1:
print ('1入口')
if __name__ == "__main__":
print ('入口')
def __init__(self,ip):
self.ip = ip
self.Bfunc(ip)
print('a')
# 初始化;类似于C#中构造函数
def Afunc(self,ip):
print('Afunc',self.ip)
def Bfunc(self,ip):
self.Afunc(ip)
print('Bfunc',ip)
a = A('192.168.1.3')