1. dir(object), return the attributes of the object
2. obj.__dict__ , return the attributes of a object
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