object() takes no parameters
class Programer(object): hobby='Play Computer' def _inint_(self,name,age,weight): self.name=name self._age=age self.__weight=weight def get_weight(self): return self._weight if __name__=='__main__': programer=Programer('Albert',25,80) print(dir(programer)) print(programer.__dict__) print(programer.get_weight()) print(programer._Programer__weight) 执行完提示object() takes no parameters