How can you refer to a class method in the 'header' of another class method as a default variable?

后端 未结 0 625
梦如初夏
梦如初夏 2020-11-29 00:26

I am working on a class, where I would like to achieve something that broadly looks like this:

class Class:
   def __init__(self, x = 4):
      self.x = x

           


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