Learning python - Object Oriented (six)

 Examples 1. class

The role of self is the greatest argument quoted the caller of the current method

Class instance method is invoked, the caller Python binding site is not a parameter (because the caller should be subject example method, but this time is the class)

2. class methods, and static methods

 

Guess you like

Origin www.cnblogs.com/wang-mengmeng/p/11695959.html