class Ss():
def __init__(self,subject1):
self.subject1 = subject1
self.subject2 = "cpp"
def __getattribute__(self,obj):
if obj == ‘subject1‘:
print("log subject10")
return ‘log record‘
else:
return object.__getattribute__(self,obj)
def show(self):
print("theis is Sscast")
s = Ss(‘python‘)
print(s.Ss1)
print(s.Ss2)