📜  获取实例的所有方法 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:18.813000             🧑  作者: Mango

代码示例1
object_methods = [method_name for method_name in dir(object)
                  if callable(getattr(object, method_name))]