Discuss / Python / xyy

兰溪C游

#1 Created at ... [Delete] [Delete and Lock User]

__slott__限制实例, 不限制class

pyhton 动态语言 绑定 attribute , method

subclass 继承 superclass 和自己的 __slott__

alohaHall

#2 Created at ... [Delete] [Delete and Lock User]

确实,仍可以给类绑定属性,Student.score = 99这样的


  • 1

Reply