1.getattr
当使用点号获取实例的属性时,如果属性不存在,则自动调用getattr方法
python学习——内置方法
猜你喜欢
转载自blog.csdn.net/qq_38628350/article/details/80164660
今日推荐
周排行