Python 3 How to access a class name from the class body without instantiating

后端 未结 0 1000
感动是毒
感动是毒 2021-02-02 05:48

Is there any way in Python 3.8 of knowing the class name in the class body before instantiating? Example

class WordOrSentence:
   class_name = \'WordOrSentence\'
         


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