2020年10月28日

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 小白在此 阅读(1924) 评论(0) 推荐(0) 编辑

导航