Python 读取object中所有方法

xiaoxiao2021-02-28  75

[method for method in dir(object) if callable(getattr(object, method))]

reference: http://stackoverflow.com/questions/34439/finding-what-methods-an-object-has

转载请注明原文地址: https://www.6miu.com/read-85108.html

最新回复(0)