#!/usr/bin/env python# !-*- coding:utf-8 -*- class Menu: def __init__(self): pass def updateProject(self): pass def restartProject(self): pass def restartTomcat(self): pass def stopTomcat(self): pass def startTomcat(self): pass def methods(self): return(list(filter(lambda m: not m.startswith("__") and not m.endswith("__") and callable(getattr(self, m)), dir(self)))) if __name__ == ‘__main__‘: print(Menu().methods())
原文地址:https://www.cnblogs.com/ytc6/p/9962511.html
时间: 2024-10-13 13:59:13