class object_example:
def __init__(self) -> None:
pass
class person(object_example):
'''there is doc'''
tall = 180
hobbies = []
def __init__(self, name, age,weight):
self.name = name
self.age = age
self.weight = weight
def infoma(self):
print('%s is %s weights %s'%(self.name,self.age,self.weight))
print(person.__name__) # person
print(person.__doc__) # there is doc
print(person.__bases__) # (<class '__main__.object_example'>,)
print(person.__dir__) # <method '__dir__' of 'object' objects>
print(person.__module__) # __main__
print(person.__class__) # <class 'type'>