precedence of .__dict__ attribute between “type” and the other classes

前端 未结 0 1751
长情又很酷
长情又很酷 2021-02-06 17:16

In the following simple Python code:

>>> class C:
...  class_level_var = 5
...
>>> C.__dict__
mappingproxy({\'__module__\': \'__main__\', \'clas         


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