python类的动态属性设置

需求:根据入参,动态添加设置类的属性

实现:

self.__setattr__
self.__getattribute__


原文地址:https://www.cnblogs.com/dannyyao/p/10694066.html