获取Class对象中的属性

vars() 

dict()

setattr()

getattr()

原文地址:https://www.cnblogs.com/Rubick7/p/8254172.html