python skill

1. dir(object), return the attributes of the object

2. obj.__dict__ , return the attributes of a object

原文地址:https://www.cnblogs.com/redstar9451/p/10774048.html