@property - method calling logic

后端 未结 0 1410
北海茫月
北海茫月 2020-12-10 03:56

Here is the code:

class Duck(): def init(self,input_name): self.__name = input_name

@property
def name(self):
    print(\'inside the g         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题