MRO: Role: Determine how super () in multiple inheritance calls method order?? Super () Effect: super () does not call the parent class method, but instead calls the method of the other class according to the order of the MROclassP (obj);classS1 (P);classS2 (P);classS3 (P);classGS1 (S1,S2,S3)Print(Gs1.mro ()) Polymorphism: The polymorphism in Python is not rigorous. Reason: Python does not have type restriction classes and instances: Class objects can access instance methods, class methods, static method instance objects can access instance methods, class methods, static method class objects can access class properties, cannot access instance property instance objects can Sufficient access to class properties, instance Properties#This invocation property is in the order of the method reference:The instance properties initialized with Init are followed by assignments based on the order in which you initialize them in the file, resulting in the last value of context (context Manager): definition: Implemented__init__()、__enter__()、__exit__The instance of the class of the () method is the context manager
016-python Increase 02-polymorphic attribute Mrocontext