Python的hasattr() getattr() setattr() 函数使用方法详解 https://www.cnblogs.com/cenyu/p/5713686.html