需求:根据入参,动态添加设置类的属性 实现: self.__setattr__ self.__getattribute__ 转载于:https://www.cnblogs.com/dannyyao/p/10694066.html