-
class A: def __call__(self, txt): print(txt) a = (A) a("hello") // -> hello
'Python' 카테고리의 다른 글
[Python] ImportError: attempted relative import with no known parent package (0) 2021.04.18 [numpy, np] arctan2 (0) 2020.09.12 multi processing, threading, multi threading (0) 2020.09.11