详见文章
https://www.cnblogs.com/0xiasandu/p/11375980.html
1. hasattr(obj,"func")
2. getattr(obj,"name")
3. setattr(obj,"name","三太子")
4. delattr(obj,"age")
详见文章
https://www.cnblogs.com/0xiasandu/p/11375980.html
1. hasattr(obj,"func")
2. getattr(obj,"name")
3. setattr(obj,"name","三太子")
4. delattr(obj,"age")