본문 바로가기

"실행" TAG LIST

파이썬 동적메소드 실행 - getattr

gattattr(object, name) 으로 object안의 메소드(name)을 호출합니다. 아래 소스를 보시면 간단하게 이해 되실겁니다. python class Exmple: def A(self): print("A")

Copyright © PythonBlog 2021 - 2022 All rights reserved
Mail : PYTHONBLOG