等價的原因是因為python calss 中的__call__和__init__方法. class A(): def __call__(self): print('i can be called like a function') a = A() a().
確定! 回上一頁