我想获取对象的所有方法。我知道函数 dir 但它返回 all(method, attr, meta_data)。
我试过这个:
[x for x in dir(obj) if "_" not in x]
但它不能正常工作。
我该怎么做?
请您参考如下方法:
我想获取对象的所有方法。我知道函数 dir 但它返回 all(method, attr, meta_data)。
我试过这个:
[x for x in dir(obj) if "_" not in x]
但它不能正常工作。
我该怎么做?
请您参考如下方法: