python中methodcaller()函数执行类中所有的方法
摘要:from operator import methodcaller class Cases: def methodA(): pass def methodB(): pass def main(): case = Cases() for func in dir(Cases): if not func.
阅读全文
posted @ 2020-10-28 14:05
posted @ 2020-10-28 14:05