Examples of deletions change search

Connected to a

Print (p1.name)
 Print (p1.play_ball ( ' basketball ' ))     ' view the properties of the instance ' 

p1.age = 18 is
 Print (p1.age)      ' increases example ' 

DEF Test (Self):
      Pass 
p1.test ( P1)      ' increasing function of time if the attribute does not pass parameter automatic transmission instance to be added so self P1 ' 

' edit, and delete the same properties '

The following methods can modify the underlying dictionary, but very not propose to amend

p1.__dict__['sex']='male'
print(p1.sex)

Guess you like

Origin www.cnblogs.com/linglingdog/p/12216069.html