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

实现:

self.__setattr__
self.__getattribute__

 


posted on 2019-04-12 09:31  蛋尼  阅读(568)  评论(0编辑  收藏  举报